Salome HOME
Fix for issue #1174
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_SketchEntity.cpp
index 5382b6cc638fc1b6e24d7b32cc9dcc99f97174ac..7f08f44005a96a4098333315f23b101d85064366 100644 (file)
@@ -14,7 +14,11 @@ SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
 void SketchPlugin_SketchEntity::initAttributes()
 {
   data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
-  data()->addAttribute(COPY_ID(), ModelAPI_AttributeBoolean::typeId());
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), AUXILIARY_ID());
-  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), COPY_ID());
+
+  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());
 }