From: nds Date: Tue, 14 Mar 2017 10:46:30 +0000 (+0300) Subject: #2027 Sketcher Trim feature; Reference attribute in Point2D control instead of immedi... X-Git-Tag: V_2.7.0~230^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=283986e5f6e7e44cc003c4c12f9934ca5701c8a2;p=modules%2Fshaper.git #2027 Sketcher Trim feature; Reference attribute in Point2D control instead of immediate coincidence constraint creation. : test reference Arc attribute is commented --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 451b29875..c2d28d3e5 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -102,8 +102,8 @@ void SketchPlugin_Arc::initDerivedClassAttributes() isInversed->setValue(false); anArcType->setValue(ARC_TYPE_CENTER_START_END()); - data()->addAttribute(CENTER_REF_ID(), ModelAPI_AttributeRefAttr::typeId()); - ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), CENTER_REF_ID()); + //data()->addAttribute(CENTER_REF_ID(), ModelAPI_AttributeRefAttr::typeId()); + //ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), CENTER_REF_ID()); } void SketchPlugin_Arc::execute() diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index fd88188f4..ab023e2fa 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -86,7 +86,8 @@ + enable_value="enable_by_preferences" /> +