From 366517d00384003467362e1edc276718f2ab4e63 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 15 Jul 2020 11:42:12 +0300 Subject: [PATCH] Task #3236: Generalization of extrusion Fix validator to be able to select sketch elements for the extrusion. --- src/FeaturesPlugin/FeaturesPlugin_Validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."; -- 2.39.2