From 283986e5f6e7e44cc003c4c12f9934ca5701c8a2 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 14 Mar 2017 13:46:30 +0300 Subject: [PATCH] #2027 Sketcher Trim feature; Reference attribute in Point2D control instead of immediate coincidence constraint creation. : test reference Arc attribute is commented --- src/SketchPlugin/SketchPlugin_Arc.cpp | 4 ++-- src/SketchPlugin/plugin-Sketch.xml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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" /> +