]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Restore validators for constraints
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 8 Dec 2014 12:21:53 +0000 (15:21 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 8 Dec 2014 12:21:53 +0000 (15:21 +0300)
src/SketchPlugin/plugin-Sketch.xml

index e19bf277228840565327b36e5b6d54bae1a8e4cf..608b345c1badeb2daaee60b160985ae00f139479 100644 (file)
@@ -65,7 +65,9 @@
                <sketch_constraint_shape_selector id="ConstraintEntityA" label="First line" tooltip="Select an line in the viewer" 
                        shape_types="edge" use_subshapes="true"/>
                <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select an line in the viewer" 
-                       shape_types="edge" use_subshapes="true"/>
+                       shape_types="edge" use_subshapes="true">
+                       <validator id="SketchPlugin_DifferentObjects"/>
+               </sketch_constraint_shape_selector>
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
         <validator id="PartSet_ParallelValidator"/>
       </feature>
       <feature id="SketchConstraintPerpendicular" title="Perpendicular" tooltip="Create constraint defining two perpendicular lines" icon=":icons/perpendicular.png">
                <sketch_constraint_shape_selector id="ConstraintEntityA" label="First line" tooltip="Select an line in the viewer" 
                        shape_types="edge" use_subshapes="true"/>
-               <sketch_constraint_shape_selector id="ConstraintEntityB" label="Last line" tooltip="Select an line in the viewer" 
-                       shape_types="edge" use_subshapes="true"/>
+               <sketch_constraint_shape_selector id="ConstraintEntityB" 
+                       label="Last line" tooltip="Select an line in the viewer" 
+                       shape_types="edge" use_subshapes="true">
+                       <validator id="SketchPlugin_DifferentObjects"/>
+               </sketch_constraint_shape_selector>
         <validator id="PartSet_PerpendicularValidator"/>
       </feature>