]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1137: Provide selection filter for fillet feature
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 16 Dec 2015 14:58:53 +0000 (17:58 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 16 Dec 2015 14:58:53 +0000 (17:58 +0300)
src/PartSet/PartSet_Validators.cpp
src/SketchPlugin/plugin-Sketch.xml

index acb34da8f2403f30cc883df4703c005011d764dc..b446bab1642528b4922b8ce7e84956f677309445 100755 (executable)
@@ -213,8 +213,8 @@ bool PartSet_FilletSelection::isValid(const ModuleBase_ISelection* theSelection,
   if (theSelection->getSelected(ModuleBase_ISelection::Viewer).size() == 0) {
     return isEmptySelectionValid(theOperation);
   } else {
-    int aCount = shapesNbLines(theSelection);
-    return (aCount > 0) && (aCount < 3);
+    int aCount = shapesNbPoints(theSelection);
+    return aCount == 1;
   }
 }
 
index a1986c159bced41d5679d563f392655c91257338..110b00461a1d3c2a8d621f9d332332a4bdb5539d 100644 (file)
@@ -50,6 +50,7 @@
         <doublevalue label="Radius" tooltip="Fillet arc radius" id="ConstraintValue" min="0" default="1" use_reset="false">
           <validator id="GeomValidators_Positive"/>
         </doublevalue>
+        <validator id="PartSet_FilletSelection"/>
       </feature>
     </group>