X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FSketchPlugin%2FSketchPlugin_SketchEntity.cpp;h=3d26d3d9502fa50bcaec9e34919ea85de1999c6c;hb=0384b535af5605c8add66b61726912287e28313f;hp=5382b6cc638fc1b6e24d7b32cc9dcc99f97174ac;hpb=61c8d0d8d485404fbdd8a2b6b623c790e56d606c;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_SketchEntity.cpp b/src/SketchPlugin/SketchPlugin_SketchEntity.cpp index 5382b6cc6..3d26d3d95 100644 --- a/src/SketchPlugin/SketchPlugin_SketchEntity.cpp +++ b/src/SketchPlugin/SketchPlugin_SketchEntity.cpp @@ -14,7 +14,10 @@ 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()); }