From: vsv Date: Wed, 16 Dec 2015 14:58:53 +0000 (+0300) Subject: Issue #1137: Provide selection filter for fillet feature X-Git-Tag: V_2.1.0~167^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c4ae2ebf2128460cf89e7129a7c4f588f2f8330;p=modules%2Fshaper.git Issue #1137: Provide selection filter for fillet feature --- diff --git a/src/PartSet/PartSet_Validators.cpp b/src/PartSet/PartSet_Validators.cpp index acb34da8f..b446bab16 100755 --- a/src/PartSet/PartSet_Validators.cpp +++ b/src/PartSet/PartSet_Validators.cpp @@ -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; } } diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index a1986c159..110b00461 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -50,6 +50,7 @@ +