From: nds Date: Fri, 26 Feb 2016 05:34:39 +0000 (+0300) Subject: registerNotObligatory is not necessary if this property is set in XML. X-Git-Tag: V_2.2.0~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8476d5e088f7b1b5a414fa5e33ce99d6131929eb;p=modules%2Fshaper.git registerNotObligatory is not necessary if this property is set in XML. --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 606069856..2c55b1ddf 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -125,9 +125,6 @@ void SketchPlugin_Arc::initDerivedClassAttributes() data()->addAttribute(TANGENT_POINT_ID(), ModelAPI_AttributeRefAttr::typeId()); data()->addAttribute(RADIUS_ID(), ModelAPI_AttributeDouble::typeId()); data()->addAttribute(ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); - - ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), RADIUS_ID()); - ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), ANGLE_ID()); } void SketchPlugin_Arc::execute() diff --git a/src/SketchPlugin/SketchPlugin_SketchEntity.cpp b/src/SketchPlugin/SketchPlugin_SketchEntity.cpp index 7f08f4400..3d26d3d95 100644 --- a/src/SketchPlugin/SketchPlugin_SketchEntity.cpp +++ b/src/SketchPlugin/SketchPlugin_SketchEntity.cpp @@ -14,7 +14,6 @@ SketchPlugin_SketchEntity::SketchPlugin_SketchEntity() void SketchPlugin_SketchEntity::initAttributes() { data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId()); - ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), AUXILIARY_ID()); initDerivedClassAttributes();