]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[bos #32342] EDF 26130 - Undo and auxiliarity
authorakondrat <alexey.kondratyev@opencascade.com>
Wed, 30 Nov 2022 08:07:01 +0000 (11:07 +0300)
committerjfa <jfa@opencascade.com>
Mon, 6 Mar 2023 10:01:10 +0000 (10:01 +0000)
Add update of visual objects after undoing operation.

src/XGUI/XGUI_Workshop.cpp

index 4d6efbfc9de0e86626cf685dfb222a37d34a4ebf..482fcb8e840b026e178883cc7fca434e45f6a8ae 100644 (file)
@@ -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();