]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide moving of lines
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 25 Jul 2014 08:52:55 +0000 (12:52 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 25 Jul 2014 08:52:55 +0000 (12:52 +0400)
src/XGUI/XGUI_Workshop.cpp

index 9080ebfaa6d71674647e1b4932e2651a7138b94a..028e2c1007de86898c4df3b66c2806d43dd10df6 100644 (file)
@@ -312,14 +312,16 @@ void XGUI_Workshop::onFeatureRedisplayMsg(const ModelAPI_ObjectUpdatedMessage* t
     if (!aObj->data() )
       myDisplayer->erase(aObj, false);
     else {
-      //if (myDisplayer->isVisible(aObj)) // TODO VSV: Correction sketch drawing
-      if(myOperationMgr->hasOperation()) {
-        ModuleBase_Operation* aOperation = myOperationMgr->currentOperation();
-        if (aOperation->hasObject(aObj)) { // Display only current operation results
-          myDisplayer->display(aObj, false);        
-        }
-      } else if (myDisplayer->isVisible(aObj))
+      if (myDisplayer->isVisible(aObj)) // TODO VSV: Correction sketch drawing
         myDisplayer->display(aObj, false); // In order to update presentation
+      else {
+        if(myOperationMgr->hasOperation()) {
+          ModuleBase_Operation* aOperation = myOperationMgr->currentOperation();
+          if (aOperation->hasObject(aObj)) { // Display only current operation results
+            myDisplayer->display(aObj, false);        
+          }
+        }
+      }
     }
   }
   myDisplayer->updateViewer();