From: jfa Date: Tue, 12 Jan 2021 10:11:34 +0000 (+0300) Subject: bos #19960: [CEA 19958] Show/Hide SHAPERSTUDY objects X-Git-Tag: V9_7_0a1~38^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60607122ae7077bba06bf15b14bd5cc2c4df9c6a;p=modules%2Fshaper.git bos #19960: [CEA 19958] Show/Hide SHAPERSTUDY objects - Update presentations after SHAPER objects modification --- diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index f92d89f69..5ba2dfeae 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -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); + } }