]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#2027 Sketcher Trim feature; Reference attribute in Point2D control instead of immedi...
authornds <nds@opencascade.com>
Tue, 14 Mar 2017 10:46:30 +0000 (13:46 +0300)
committernds <nds@opencascade.com>
Tue, 14 Mar 2017 10:46:30 +0000 (13:46 +0300)
: test reference Arc attribute is commented

src/SketchPlugin/SketchPlugin_Arc.cpp
src/SketchPlugin/plugin-Sketch.xml

index 451b2987547162649d8aa9ae8560ae83e17a7460..c2d28d3e5f5fee68c9b02916c972bfd17e8f738c 100644 (file)
@@ -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()
index fd88188f4c66ae14ca55e96c7bd84427936e0dd1..ab023e2fa487a18ec9b418c331deca0c85aca68b 100644 (file)
@@ -86,7 +86,8 @@
         <toolbox id="ArcType">
           <box id="CenterStartEnd" title="Center and two points" icon="icons/Sketch/arc_base_32x32.png">
             <sketch-2dpoint_selector id="ArcCenter" accept_expressions="0" title="Center" tooltip="Center of a circle"
-                                     enable_value="enable_by_preferences" reference_attribute="ArcCenterRef"/>
+                                     enable_value="enable_by_preferences" />
+            <!--reference_attribute="ArcCenterRef" />-->
             <sketch-2dpoint_selector id="ArcStartPoint" accept_expressions="0" title="Start point" tooltip="Start point"
                                      enable_value="enable_by_preferences"/>
             <sketch-2dpoint_selector id="ArcEndPoint" accept_expressions="0" title="End point" tooltip="End point"