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

src/XGUI/XGUI_Workshop.cpp

index 124ac7bc109ce985c6e7ca3d7b81767053ce3e05..0c89e8dbde05e77b3bef5709ea12116eeb86b449 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();