From: vsv Date: Thu, 28 Apr 2016 08:35:24 +0000 (+0300) Subject: Issue #1464: make direction attributes as non-obligatory X-Git-Tag: V_2.3.0~85 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f410ba52e2ed73b970893d79b1029b13b95215f7;p=modules%2Fshaper.git Issue #1464: make direction attributes as non-obligatory --- diff --git a/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp b/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp index 521d35dfb..b25cc9c2d 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp @@ -12,6 +12,8 @@ #include #include #include +#include +#include #include #include @@ -44,6 +46,12 @@ void ConstructionPlugin_Axis::initAttributes() ModelAPI_AttributeDouble::typeId()); data()->addAttribute(ConstructionPlugin_Axis::Z_DIRECTION(), ModelAPI_AttributeDouble::typeId()); + ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), + ConstructionPlugin_Axis::X_DIRECTION()); + ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), + ConstructionPlugin_Axis::Y_DIRECTION()); + ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), + ConstructionPlugin_Axis::Z_DIRECTION()); } void ConstructionPlugin_Axis::createAxisByTwoPoints()