]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[bos #32342] EDF 26130 - Undo and auxiliarity
authorakondrat <alexey.kondratyev@opencascade.com>
Thu, 20 Oct 2022 06:28:49 +0000 (09:28 +0300)
committerakondrat <alexey.kondratyev@opencascade.com>
Tue, 1 Nov 2022 08:38:49 +0000 (11:38 +0300)
Add update of visual objects after aborting operation.

src/ModuleBase/ModuleBase_OperationFeature.cpp

index 77b0956e0b1cc04d89e63a45fe1a7eb66254d21d..4a3466ba6bd37475318a4a9046150c9abbf9db30 100644 (file)
@@ -278,6 +278,12 @@ void ModuleBase_OperationFeature::abort()
       new Events_Message(Events_Loop::eventByName(EVENT_UPDATE_VIEWER_BLOCKED)));
   Events_Loop::loop()->send(aMsg);
 
+  if (myFeature.get())
+  {
+    static const Events_ID anEvent = Events_Loop::eventByName(EVENT_VISUAL_ATTRIBUTES);
+    ModelAPI_EventCreator::get()->sendUpdated(myFeature, anEvent);
+  }
+
   // the widgets of property panel should not process any events come from data mode
   // after abort clicked. Some signal such as redisplay/create influence on content
   // of the object browser and viewer context. Therefore it influence to the current