From cab7c69a24c2ae1780a1ca8800f39e82f518c954 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 124ac7bc1..0c89e8dbd 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