]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update constraints on editing of sketch elements
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 30 Jul 2014 11:44:34 +0000 (15:44 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 30 Jul 2014 11:44:34 +0000 (15:44 +0400)
src/Model/Model_Update.cpp

index d8ccc3dd9060950f6743e81a799328d90d74e995..f728bb60e23a9861bbbd65daa9df0e37c6df15aa 100644 (file)
@@ -100,6 +100,8 @@ bool Model_Update::updateFeature(FeaturePtr theFeature)
         myUpdated[aRes] = true;
         ModelAPI_EventCreator::get()->sendUpdated(aRes, EVENT_DISP);
       }
+      // to redisplay "presentable" feature (for ex. distance constraint)
+      ModelAPI_EventCreator::get()->sendUpdated(theFeature, EVENT_DISP);
     } else { // returns also true is results were updated: for sketch that refers to sub-features but results of sub-features were changed
       const std::list<boost::shared_ptr<ModelAPI_Result> >& aResults = theFeature->results();
       std::list<boost::shared_ptr<ModelAPI_Result> >::const_iterator aRIter = aResults.begin();