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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user