From: vsv Date: Fri, 25 Jul 2014 08:52:55 +0000 (+0400) Subject: Provide moving of lines X-Git-Tag: V_0.4.4~147 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=572b3ab8d9923f505722d9a11e570b2136180205;p=modules%2Fshaper.git Provide moving of lines --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 9080ebfaa..028e2c100 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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();