]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Clear sketch plane after testing of pre-selection
authorvsv <vsv@opencascade.com>
Tue, 28 Jan 2020 06:51:43 +0000 (09:51 +0300)
committervsv <vsv@opencascade.com>
Tue, 28 Jan 2020 06:51:43 +0000 (09:51 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp

index 0185172b98c85ec4669e203a6f8c3bf5cf101c7d..577689a6cca2ca6e5fe8ea304b8f510f773d30f4 100644 (file)
@@ -451,6 +451,15 @@ void PartSet_WidgetSketchLabel::restoreAttributeValue(const AttributePtr& theAtt
     GeomShapePtr anEmptyShape;
     aSelAttr->setValue(anEmptyResult, anEmptyShape);
   }
+  std::shared_ptr<GeomDataAPI_Point> anOrigin = std::dynamic_pointer_cast<GeomDataAPI_Point>(
+    aData->attribute(SketchPlugin_Sketch::ORIGIN_ID()));
+  anOrigin->reset();
+  std::shared_ptr<GeomDataAPI_Dir> aNormal = std::dynamic_pointer_cast<GeomDataAPI_Dir>(
+    aData->attribute(SketchPlugin_Sketch::NORM_ID()));
+  aNormal->reset();
+  std::shared_ptr<GeomDataAPI_Dir> aDirX = std::dynamic_pointer_cast<GeomDataAPI_Dir>(
+    aData->attribute(SketchPlugin_Sketch::DIRX_ID()));
+  aDirX->reset();
 }
 
 bool PartSet_WidgetSketchLabel::setSelectionCustom(const ModuleBase_ViewerPrsPtr& thePrs)