]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2831 : In Split and Trim, the segment is not highlighted
authormpv <mpv@opencascade.com>
Thu, 10 Jan 2019 13:32:18 +0000 (16:32 +0300)
committermpv <mpv@opencascade.com>
Thu, 10 Jan 2019 13:32:32 +0000 (16:32 +0300)
src/Model/Model_Data.cpp

index cd3cf88cca46819f2af7ca43b0c4583abda56525..e3db875e3b492790caf26aa338f61ce7173226e9 100644 (file)
@@ -335,6 +335,12 @@ void Model_Data::sendAttributeUpdated(ModelAPI_Attribute* theAttr)
       if (myWasChangedButBlocked.empty() || *(myWasChangedButBlocked.rbegin()) != theAttr)
         myWasChangedButBlocked.push_back(theAttr);
     }
+  } else {
+    // trim: need to redisplay
+    if (myObject && theAttr->attributeType() == "Point2D") {
+      static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY);
+      ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent);
+    }
   }
 }