]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make moved groups update their results
authormpv <mpv@opencascade.com>
Fri, 4 Sep 2015 13:40:17 +0000 (16:40 +0300)
committermpv <mpv@opencascade.com>
Fri, 4 Sep 2015 13:40:17 +0000 (16:40 +0300)
src/Model/Model_Objects.cpp

index a1587ad019d9ba5a8b418ee24fc9542778bd9045..8c65194fdae3da149160f0cd33b16a3e890fbe92 100644 (file)
@@ -297,6 +297,8 @@ void Model_Objects::moveFeature(FeaturePtr theMoved, FeaturePtr theAfterThis)
   aRefs->SetInternalArray(aNewArray);
   // update the feature and the history
   clearHistory(theMoved);
+  // make sure all (selection) attributes of moved feature will be updated
+  theMoved->data()->setUpdateID(0);
   static Events_ID EVENT_UPD = Events_Loop::loop()->eventByName(EVENT_OBJECT_UPDATED);
   ModelAPI_EventCreator::get()->sendUpdated(theMoved, EVENT_UPD);
 }