From 8476d5e088f7b1b5a414fa5e33ce99d6131929eb Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 26 Feb 2016 08:34:39 +0300 Subject: [PATCH] registerNotObligatory is not necessary if this property is set in XML. --- src/SketchPlugin/SketchPlugin_Arc.cpp | 3 --- src/SketchPlugin/SketchPlugin_SketchEntity.cpp | 1 - 2 files changed, 4 deletions(-) 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(); -- 2.39.2