From 3c4ae2ebf2128460cf89e7129a7c4f588f2f8330 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 16 Dec 2015 17:58:53 +0300 Subject: [PATCH] Issue #1137: Provide selection filter for fillet feature --- src/PartSet/PartSet_Validators.cpp | 4 ++-- src/SketchPlugin/plugin-Sketch.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 @@ + -- 2.39.2