1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0026127: Visualization - Default camera is not copied in copy constructor of V3d_View

V3d_View copy constructor now copies DefaultCamera() from specified View.
Draw Harness command vinit - added new argument -cloneActive.
This commit is contained in:
kgv
2018-03-08 13:52:01 +03:00
committed by bugmaster
parent 81ce8c4de3
commit 9e04ccdcf8
4 changed files with 52 additions and 20 deletions

View File

@@ -122,14 +122,13 @@ V3d_View::V3d_View (const Handle(V3d_Viewer)& theViewer, const Handle(V3d_View)&
myView = theViewer->Driver()->CreateView (theViewer->StructureManager());
myView->CopySettings (theView->View());
myDefaultViewPoint = theView->myDefaultViewPoint;
myDefaultViewAxis = theView->myDefaultViewAxis;
myDefaultCamera = new Graphic3d_Camera();
myDefaultCamera = new Graphic3d_Camera (theView->DefaultCamera());
myImmediateUpdate = Standard_False;
SetAutoZFitMode (theView->AutoZFitMode(), theView->AutoZFitScaleFactor());
SetAxis (0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
SetViewMappingDefault();
SetViewOrientationDefault();
theViewer->AddView (this);
Init();
myImmediateUpdate = Standard_True;