From 40b57c943c2120c2c21a626eabfc766228b50a84 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 17 Sep 2015 16:02:35 +0300 Subject: [PATCH] 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. --- src/NewGeom/NewGeom_SalomeViewer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2