void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrsPtr& thePrs)
{
+ // Nullify a temporary remembered plane
+ if (myTmpPlane.get())
+ myTmpPlane.reset();
+
GeomPlanePtr aPlane = plane();
if (!aPlane.get())
return;
void PartSet_WidgetSketchLabel::deactivate()
{
+ if (myTmpPlane.get()) {
+ setSketchPlane(myTmpPlane);
+ myTmpPlane.reset();
+ }
+
ModuleBase_WidgetValidated::deactivate();
bool aHidePreview = myPreviewPlanes->isPreviewDisplayed();
myPreviewPlanes->erasePreviewPlanes(myWorkshop);
}
CompositeFeaturePtr aSketch = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(myFeature);
+ myTmpPlane = PartSet_Tools::sketchPlane(aSketch);
PartSet_Tools::nullifySketchPlane(aSketch);
Handle(SelectMgr_Filter) aFilter = aModule->selectionFilter(SF_SketchPlaneFilter);