]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Sketch delete problem: it is not possible to delete dimensional constraint
authornds <nds@opencascade.com>
Fri, 22 Apr 2016 13:09:56 +0000 (16:09 +0300)
committernds <nds@opencascade.com>
Fri, 22 Apr 2016 13:10:23 +0000 (16:10 +0300)
src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_SketcherMgr.cpp

index e2e1f3600afa6496fe725463b2b238e0afa73b06..9ad6a8e00c8c274f42d20a71edbaeebfd1b2e7d5 100755 (executable)
@@ -966,8 +966,7 @@ bool PartSet_Module::customisePresentation(ResultPtr theResult, AISObjectPtr the
       if (aColor.empty())
         XGUI_CustomPrs::getDefaultColor(anObject, true, aColor);
       if (!aColor.empty()) {
-        thePrs->setColor(aColor[0], aColor[1], aColor[2]);
-        aCustomized = true;
+        aCustomized = thePrs->setColor(aColor[0], aColor[1], aColor[2]);
       }
     }
 
index be2d63ec498a65dbb7d865696ba1823332e79bd0..2b19b4c70a11b7db128da3df7d558a6dfe0de06c 100755 (executable)
@@ -1692,10 +1692,12 @@ void PartSet_SketcherMgr::updateBySketchParameters(
     }
     break;
     case PartSet_Tools::Expressions: {
-      /// call all sketch features redisplay, the expression state will be corrected in customize
-      /// of distance presentation
-      Events_ID anEventId = Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
-      PartSet_Tools::sendSubFeaturesEvent(myCurrentSketch, anEventId);
+      if (aPrevState != theState) {
+        /// call all sketch features redisplay, the expression state will be corrected in customize
+        /// of distance presentation
+        Events_ID anEventId = Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
+        PartSet_Tools::sendSubFeaturesEvent(myCurrentSketch, anEventId);
+      }
     }
     break;
   }