From: Artem Zhidkov Date: Wed, 15 Jul 2020 08:42:12 +0000 (+0300) Subject: Task #3236: Generalization of extrusion X-Git-Tag: V9_6_0a1~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=366517d00384003467362e1edc276718f2ab4e63;p=modules%2Fshaper.git Task #3236: Generalization of extrusion Fix validator to be able to select sketch elements for the extrusion. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp index 0d22e130a..c8b96f144 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp @@ -458,7 +458,7 @@ bool FeaturesPlugin_ValidatorBaseForGeneration::isValidAttribute(const Attribute } } - if(aContextShape.get() && !aShape->isEqual(aContextShape)) { + if(!aConstruction && aContextShape.get() && !aShape->isEqual(aContextShape)) { // Local selection on body does not allowed. theError = "Error: Selected shape is in the local selection. Only global selection is allowed.";