From d1bf96e37f50cceb9a4c225addf693d2460334ba Mon Sep 17 00:00:00 2001 From: akondrat Date: Wed, 30 Nov 2022 11:07:01 +0300 Subject: [PATCH] [bos #32342] EDF 26130 - Undo and auxiliarity Add update of visual objects after undoing operation. --- src/XGUI/XGUI_Workshop.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 4d6efbfc9..482fcb8e8 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1321,6 +1321,11 @@ void XGUI_Workshop::processUndoRedo(const ModuleBase_ActionType theActionType, i facesPanel()->reset(true); updateCommandStatus(); + QObjectPtrList aList = myDisplayer->displayedObjects(); + foreach(ObjectPtr aObj, aList) { + module()->customizePresentation(aObj, myDisplayer->getAISObject(aObj)); + } + // unblock the viewer update functionality and make update on purpose myDisplayer->enableUpdateViewer(isUpdateEnabled); myDisplayer->updateViewer(); -- 2.39.2