if (!isActiveMgr())
return;
- if (myPreviousFeature.get() && myRestartingMode == RM_LastFeatureUsed) {
- ModuleBase_OperationFeature* aCurrentOperation = dynamic_cast<ModuleBase_OperationFeature*>(
- myWorkshop->currentOperation());
- CompositeFeaturePtr aSketch = module()->sketchMgr()->activeSketch();
- if (myPreviousFeature.get() && myPreviousFeature->data()->isValid()) // it is not removed
- copyReetntrantAttributes(myPreviousFeature, aCurrentOperation->feature(), aSketch);
- }
+ //if (myPreviousFeature.get() && myRestartingMode == RM_LastFeatureUsed) {
+ //ModuleBase_OperationFeature* aCurrentOperation = dynamic_cast<ModuleBase_OperationFeature*>(
+ // myWorkshop->currentOperation());
+ //CompositeFeaturePtr aSketch = module()->sketchMgr()->activeSketch();
+ //if (myPreviousFeature.get() && myPreviousFeature->data()->isValid()) // it is not removed
+ //copyReetntrantAttributes(myPreviousFeature, aCurrentOperation->feature(), aSketch);
+ //}
resetFlags();
}
&& !aSelectedPrs->object()->data()->isValid()) {
// the selected object was removed diring restart, e.g. presentable macro feature
// there are created objects to replace the object depending on created feature kind
- aSelectedPrs = generatePreSelection();
+ aSelectedPrs = std::shared_ptr<ModuleBase_ViewerPrs>();
}
aMouseProcessor->setPreSelection(aSelectedPrs, theWindow, theEvent);
//aPoint2DWdg->mouseReleased(theWindow, theEvent);
if (myInternalFeature.get())
copyReetntrantAttributes(myInternalFeature, aFOperation->feature(),
- module()->sketchMgr()->activeSketch());
+ module()->sketchMgr()->activeSketch());
myNoMoreWidgetsAttribute = "";
myIsFlagsBlocked = true;
theNewFeature->data()->attribute(SketchPlugin_Trim::SELECTED_OBJECT()));
aNRefSelectedAttr->setValue(aRefSelectedAttr->value());*/
- /*std::shared_ptr<ModelAPI_AttributeReference> aRefPreviewAttr =
+ std::shared_ptr<ModelAPI_AttributeReference> aRefPreviewAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeReference>(
theSourceFeature->data()->attribute(SketchPlugin_Trim::PREVIEW_OBJECT()));
std::shared_ptr<ModelAPI_AttributeReference> aNRefPreviewAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeReference>(
theNewFeature->data()->attribute(SketchPlugin_Trim::PREVIEW_OBJECT()));
- aNRefPreviewAttr->setValue(aRefPreviewAttr->value());*/
+ aNRefPreviewAttr->setValue(aRefPreviewAttr->value());
/*std::shared_ptr<GeomDataAPI_Point2D> aPointSelectedAttr =
std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
theNewFeature->data()->attribute(SketchPlugin_Trim::SELECTED_POINT()));
aNPointSelectedAttr->setValue(aPointSelectedAttr->x(), aPointSelectedAttr->y());
*/
- /*std::shared_ptr<GeomDataAPI_Point2D> aPointPreviewAttr =
+ std::shared_ptr<GeomDataAPI_Point2D> aPointPreviewAttr =
std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
theSourceFeature->data()->attribute(SketchPlugin_Trim::PREVIEW_POINT()));
std::shared_ptr<GeomDataAPI_Point2D> aNPointPreviewAttr =
std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
theNewFeature->data()->attribute(SketchPlugin_Trim::PREVIEW_POINT()));
aNPointPreviewAttr->setValue(aPointPreviewAttr->x(), aPointPreviewAttr->y());
- */
//aChanged = true;
}
return aChanged;
return aTangentArc;
}
-std::shared_ptr<ModuleBase_ViewerPrs> PartSet_SketcherReentrantMgr::generatePreSelection()
-{
- std::shared_ptr<ModuleBase_ViewerPrs> aPrs;
-
- return aPrs;
-}
-
void PartSet_SketcherReentrantMgr::updateAcceptAllAction()
{
CompositeFeaturePtr aSketch = module()->sketchMgr()->activeSketch();