From: nds Date: Thu, 17 Sep 2015 13:02:35 +0000 (+0300) Subject: Issue #963 Constraint is blinking during movement X-Git-Tag: V_1.4.0~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=40b57c943c2120c2c21a626eabfc766228b50a84;p=modules%2Fshaper.git Issue #963 Constraint is blinking during movement It is necessary to check the previous state of the enable flag. SALOME unconditionally call ClearSelection by the enable selection state change if the new state is false. --- diff --git a/src/NewGeom/NewGeom_SalomeViewer.cpp b/src/NewGeom/NewGeom_SalomeViewer.cpp index 67d2946cb..87a81a625 100644 --- a/src/NewGeom/NewGeom_SalomeViewer.cpp +++ b/src/NewGeom/NewGeom_SalomeViewer.cpp @@ -244,7 +244,8 @@ void NewGeom_SalomeViewer::onActivated(SUIT_ViewManager* theMgr) void NewGeom_SalomeViewer::enableSelection(bool isEnabled) { if (mySelector) - mySelector->viewer()->enableSelection(isEnabled); + if (mySelector->viewer()->isSelectionEnabled() != isEnabled) + mySelector->viewer()->enableSelection(isEnabled); // The enableSelection() in SALOME 7.5 cause of forced Viewer update(we have blinking) // After this is corrected, the first row should be recommented, the last - removed //mySelector->viewer()->setInteractionStyle(isEnabled ? SUIT_ViewModel::STANDARD