void PartSet_Module::onPlaneSelected(double theX, double theY, double theZ)
{
myWorkshop->viewer()->setViewProjection(theX, theY, theZ);
+}
+
+void PartSet_Module::onSketchLaunched()
+{
xWorkshop()->actionsMgr()->update();
// Set working plane
ModuleBase_Operation* anOperation = myWorkshop->currentOperation();
connect(aSketchOp, SIGNAL(planeSelected(double, double, double)), this,
SLOT(onPlaneSelected(double, double, double)));
connect(aSketchOp, SIGNAL(fitAllView()), this, SLOT(onFitAllView()));
+ connect(aSketchOp, SIGNAL(launchSketch()), this, SLOT(onSketchLaunched()));
}
}
QList<ModuleBase_ViewerPrs> aSelected = aSelect->getSelected();
// We need to stop edit operation if selection is cleared
if (aSelected.size() == 0) {
- PartSet_OperationFeatureEdit* anEditOp =
+ // do not perform commit of the current edit operation here, because
+ // this functionality is realized inside this operation
+ /*PartSet_OperationFeatureEdit* anEditOp =
dynamic_cast<PartSet_OperationFeatureEdit*>(myWorkshop->currentOperation());
if (!anEditOp)
return;
- anEditOp->commit();
+ anEditOp->commit();*/
} else {
PartSet_OperationSketchBase* aSketchOp =
dynamic_cast<PartSet_OperationSketchBase*>(myWorkshop->currentOperation());