]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Task #3236: Generalization of extrusion
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 15 Jul 2020 08:42:12 +0000 (11:42 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 15 Jul 2020 08:42:12 +0000 (11:42 +0300)
Fix validator to be able to select sketch elements for the extrusion.

src/FeaturesPlugin/FeaturesPlugin_Validators.cpp

index 0d22e130a6ccfb15cc20520efa9e8b16a8548bf7..c8b96f14403b868062e04fe60793ba918360a237 100644 (file)
@@ -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.";