]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Reseted Line should not be visualized in the viewer. V_2.0.0
authornds <nds@opencascade.com>
Wed, 18 Nov 2015 16:10:05 +0000 (19:10 +0300)
committernds <nds@opencascade.com>
Wed, 18 Nov 2015 16:10:05 +0000 (19:10 +0300)
Quick move from viewer to PP caused the line's point moving to origin.

src/PartSet/PartSet_SketcherMgr.cpp

index 6e600764e86a4fced79ba3502d9080eefbe665c9..eddf4b07eb0afb9e2f5d3048ec5bdc18b566b272 100755 (executable)
@@ -270,7 +270,6 @@ void PartSet_SketcherMgr::onLeaveViewPort()
   ModuleBase_ModelWidget* anActiveWidget = getActiveWidget();
   if (anActiveWidget)
     anActiveWidget->reset();
-  aDisplayer->enableUpdateViewer(isEnableUpdateViewer);
 
   // hides the presentation of the current operation feature
   // the feature is to be erased here, but it is correct to call canDisplayObject because
@@ -281,6 +280,9 @@ void PartSet_SketcherMgr::onLeaveViewPort()
     FeaturePtr aFeature = aFOperation->feature();
     visualizeFeature(aFeature, aFOperation->isEditOperation(), canDisplayObject(aFeature));
   }
+  // we should update viewer after the presentation are hidden in the viewer
+  // otherwise the reset presentation(line) appears in the viewer(by quick move from viewer to PP)
+  aDisplayer->enableUpdateViewer(isEnableUpdateViewer);
 }
 
 void PartSet_SketcherMgr::onBeforeValuesChangedInPropertyPanel()