#include <XGUI_ViewerProxy.h>
#include <ModuleBase_Operation.h>
+#include <ModuleBase_OperationDescription.h>
#include <ModuleBase_Preferences.h>
#include <ModuleBase_ActionInfo.h>
#include <ModuleBase_IModule.h>
void SHAPERGUI::onOperationCommitted(ModuleBase_Operation* theOperation)
{
onOperationGeneric(theOperation, moduleName(), "committed");
+ if ((theOperation->getDescription()->operationId() != "PublishToStudy")
+ && (! theOperation->getDescription()->operationId().startsWith("Sketch"))) {
+ publishToStudy();
+ }
}
//******************************************************
// update SHAPERSTUDY objects in OCC and VTK viewers
QStringList aVMList;
- aVMList << "OCCViewer" << "VTKViewer";
+ aVMList << "OCCViewer" << "VTKViewer" << "PV3DViewer";
getApp()->updatePresentations("SHAPERSTUDY", aVMList);
}
}