From ce1dff0f4b80e11935e94960c1761ef0d1aad2a3 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 28 Jan 2020 09:51:43 +0300 Subject: [PATCH] Clear sketch plane after testing of pre-selection --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 0185172b9..577689a6c 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -451,6 +451,15 @@ void PartSet_WidgetSketchLabel::restoreAttributeValue(const AttributePtr& theAtt GeomShapePtr anEmptyShape; aSelAttr->setValue(anEmptyResult, anEmptyShape); } + std::shared_ptr anOrigin = std::dynamic_pointer_cast( + aData->attribute(SketchPlugin_Sketch::ORIGIN_ID())); + anOrigin->reset(); + std::shared_ptr aNormal = std::dynamic_pointer_cast( + aData->attribute(SketchPlugin_Sketch::NORM_ID())); + aNormal->reset(); + std::shared_ptr aDirX = std::dynamic_pointer_cast( + aData->attribute(SketchPlugin_Sketch::DIRX_ID())); + aDirX->reset(); } bool PartSet_WidgetSketchLabel::setSelectionCustom(const ModuleBase_ViewerPrsPtr& thePrs) -- 2.39.2