From 5ef05337b6d54cc18c9a8deecdc3586b071ae022 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 19 Jul 2016 15:20:16 +0300 Subject: [PATCH] Issue #1649: New creation of Construction Planes "Reverse" boolean attribute in plane creation in distance to other plane. It is commented as ModelAPI/Test/Test1064.py should be corrected also. --- src/ConstructionPlugin/ConstructionPlugin_Plane.cpp | 2 +- src/ConstructionPlugin/ConstructionPlugin_Plane.h | 4 ++-- src/ConstructionPlugin/plane_widget.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp index 68f3e5b0a..f4b966ac1 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.cpp @@ -68,7 +68,7 @@ void ConstructionPlugin_Plane::initAttributes() data()->addAttribute(CREATION_METHOD_BY_OTHER_PLANE_OPTION(), ModelAPI_AttributeString::typeId()); data()->addAttribute(PLANE(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(DISTANCE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId()); + //data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId()); data()->addAttribute(COINCIDENT_POINT(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(AXIS(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(ANGLE(), ModelAPI_AttributeDouble::typeId()); diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.h b/src/ConstructionPlugin/ConstructionPlugin_Plane.h index 15894a2f6..b9a7141f5 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.h @@ -160,11 +160,11 @@ public: } /// Attribute name for reverse in distance from other case - inline static const std::string& DISTANCE_REVERSE() + /*inline static const std::string& DISTANCE_REVERSE() { static const std::string ATTR_DISTANCE_REVERSE_ID("distance_reverse"); return ATTR_DISTANCE_REVERSE_ID; - } + }*/ /// Attribute name for coincident point. inline static const std::string& COINCIDENT_POINT() diff --git a/src/ConstructionPlugin/plane_widget.xml b/src/ConstructionPlugin/plane_widget.xml index 8f3ed0dc5..37e48b6fd 100644 --- a/src/ConstructionPlugin/plane_widget.xml +++ b/src/ConstructionPlugin/plane_widget.xml @@ -71,10 +71,10 @@ default="10"> - + default="false"/>-->