Salome HOME
Issue #1664 In the Sketcher, add the function Split a segment - correction of constra...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_SketchEntity.cpp
index 1e7c4de3b5e2a999f2714426e2bc4feac8373118..6b5beb942c7493884fbf9beb0863cafc382296ac 100644 (file)
@@ -12,6 +12,11 @@ SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
 
 void SketchPlugin_SketchEntity::initAttributes()
 {
-  data()->addAttribute(CONSTRUCTION_ID(), ModelAPI_AttributeBoolean::type());
-  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), CONSTRUCTION_ID());
+  data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
+
+  initDerivedClassAttributes();
+
+  AttributePtr anAttr = data()->addAttribute(SketchPlugin_SketchEntity::COPY_ID(), ModelAPI_AttributeBoolean::typeId());
+  anAttr->setIsArgument(false);
+  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), SketchPlugin_SketchEntity::COPY_ID());
 }