{
return;
}
- else if (IsDefined())
- {
- Visual3d_ViewDefinitionError::Raise ("Window already defined");
- }
MyCView.GContext = theContext;
MyCView.GDisplayCB = theDisplayCB;
{
return;
}
- else if (IsDefined())
- {
- Visual3d_ViewDefinitionError::Raise ("Window already defined");
- }
MyWindow = theWindow;
MyCView.WsId = MyCView.ViewId;
// In fact, association view-window is done, but the
// display is produced only if the view is activated (Activate).
SetRatio();
+
+ // invalidate camera
+ const Handle(Graphic3d_Camera)& aCamera = MyCView.Context.Camera;
+ if (!aCamera.IsNull())
+ {
+ aCamera->InvalidateProjection();
+ aCamera->InvalidateOrientation();
+ }
}
// =======================================================================