From 0a7427049c173f3a43cfab497a1a4602c94f52c9 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 18 Nov 2015 19:10:05 +0300 Subject: [PATCH] Reseted Line should not be visualized in the viewer. Quick move from viewer to PP caused the line's point moving to origin. --- src/PartSet/PartSet_SketcherMgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 6e600764e..eddf4b07e 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -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() -- 2.39.2