Salome HOME
ModelDocument test corrected to avoid SWIG/Python crash
[modules/shaper.git] / src / NewGeom / NewGeom_SalomeViewer.cpp
index 27e159329e226447dc93dc4b5d03cb744c5ce59f..8fe9bd862ce0662f02e3b90a5385616ca6f2b78d 100644 (file)
@@ -233,7 +233,7 @@ void NewGeom_SalomeViewer::setViewProjection(double theX, double theY, double th
     Handle(V3d_View) aView3d = aVFrame->getViewPort()->getView();
     if (!aView3d.IsNull()) {
       aView3d->SetProj(theX, theY, theZ);
-      aView3d->FitAll(0.01, true, true);
+      aView3d->FitAll(0.01, true);
       aView3d->SetZSize(0.);
     }
   }
@@ -265,3 +265,12 @@ void NewGeom_SalomeViewer::clearSelectionFilters()
     aContext->RemoveFilters();
   }
 }
+
+//***************************************
+void NewGeom_SalomeViewer::update()
+{
+  Handle(AIS_InteractiveContext) aContext = AISContext();
+  if (!aContext.IsNull()) {
+    aContext->UpdateCurrentViewer();
+  }
+}