- Update presentations after SHAPER objects modification
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);
+ }
}