From 60607122ae7077bba06bf15b14bd5cc2c4df9c6a Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 12 Jan 2021 13:11:34 +0300 Subject: [PATCH] bos #19960: [CEA 19958] Show/Hide SHAPERSTUDY objects - Update presentations after SHAPER objects modification --- src/SHAPERGUI/SHAPERGUI.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); + } } -- 2.39.2