Salome HOME
Task 2.12. New entities: ellipses and arcs of ellipses (issue #3003)
[modules/shaper.git] / src / SketchAPI / SketchAPI_MacroEllipse.cpp
index 3a4ef16d3631b4191c670a57d20d7d3bc4988ccb..e833775e204e281e037e7eb4a0e1486f0439d681 100644 (file)
@@ -56,10 +56,11 @@ static CompositeFeaturePtr sketch(FeaturePtr theFeature)
 }
 
 
-SketchAPI_MacroEllipse::SketchAPI_MacroEllipse(const std::shared_ptr<ModelAPI_Feature>& theFeature)
+SketchAPI_MacroEllipse::SketchAPI_MacroEllipse(const std::shared_ptr<ModelAPI_Feature>& theFeature,
+                                               bool callInitialize)
 : SketchAPI_SketchEntity(theFeature)
 {
-  if (initialize())
+  if (callInitialize && initialize())
     mySketch = sketch(theFeature);
 }