]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #19960: [CEA 19958] Show/Hide SHAPERSTUDY objects occ/19960_v2
authorjfa <jfa@opencascade.com>
Tue, 12 Jan 2021 10:11:34 +0000 (13:11 +0300)
committervsr <vsr@opencascade.com>
Fri, 5 Feb 2021 08:17:44 +0000 (11:17 +0300)
- Update presentations after SHAPER objects modification

src/SHAPERGUI/SHAPERGUI.cpp

index f92d89f69d7bcc8891d76cf276a29844632f8d7d..5ba2dfeaea4cd34d38b2cfe9b954ed1040237e59 100644 (file)
@@ -1278,6 +1278,12 @@ void SHAPERGUI::resetToolbars()
 
 void SHAPERGUI::publishToStudy()
 {
-  if (isActiveModule() && ModelAPI_Session::get()->hasModuleDocument())
+  if (isActiveModule() && ModelAPI_Session::get()->hasModuleDocument()) {
     myWorkshop->module()->launchOperation("PublishToStudy", false);
+
+    // update SHAPERSTUDY objects in OCC and VTK viewers
+    QStringList aVMList;
+    aVMList << "OCCViewer" << "VTKViewer";
+    getApp()->updatePresentations("SHAPERSTUDY", aVMList);
+  }
 }