From 6682f07e80f318796eeb031b7d0293acf8f2b948 Mon Sep 17 00:00:00 2001 From: akondrat Date: Thu, 20 Oct 2022 09:28:49 +0300 Subject: [PATCH] [bos #32342] EDF 26130 - Undo and auxiliarity Add update of visual objects after aborting operation. --- src/ModuleBase/ModuleBase_OperationFeature.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ModuleBase/ModuleBase_OperationFeature.cpp b/src/ModuleBase/ModuleBase_OperationFeature.cpp index 77b0956e0..4a3466ba6 100644 --- a/src/ModuleBase/ModuleBase_OperationFeature.cpp +++ b/src/ModuleBase/ModuleBase_OperationFeature.cpp @@ -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 -- 2.39.2