]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
registerNotObligatory is not necessary if this property is set in XML.
authornds <nds@opencascade.com>
Fri, 26 Feb 2016 05:34:39 +0000 (08:34 +0300)
committernds <nds@opencascade.com>
Fri, 26 Feb 2016 05:34:39 +0000 (08:34 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp
src/SketchPlugin/SketchPlugin_SketchEntity.cpp

index 6060698560e9d993f662a5e053b92c5ee3fad3f8..2c55b1ddf2376bf2287dca697162e1993e8bbda5 100644 (file)
@@ -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()
index 7f08f44005a96a4098333315f23b101d85064366..3d26d3d9502fa50bcaec9e34919ea85de1999c6c 100644 (file)
@@ -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();