]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1369: Fixed validator.
authordbv <dbv@opencascade.com>
Tue, 26 Apr 2016 13:09:14 +0000 (16:09 +0300)
committerdbv <dbv@opencascade.com>
Tue, 26 Apr 2016 13:52:20 +0000 (16:52 +0300)
src/BuildPlugin/BuildPlugin_Validators.cpp

index 5097fea405d887c957ffd83abc3caaa8c7850d0e..dfdd20d3990afd28b0e77fdaf2af31db0ab9d11d 100644 (file)
@@ -87,12 +87,16 @@ bool BuildPlugin_ValidatorBaseForBuild::isValid(const AttributePtr& theAttribute
           // It is whole sketch.
           return false;
         }
-      } else if(!aShape->isEqual(aContextShape)) {
-        // Local selection on body does not allowed.
-        theError = "Selected shape is in the local selection. Only global selection is allowed.";
-        return false;
+
+        continue;
       }
     }
+
+    if(!aShape->isEqual(aContextShape)) {
+      // Local selection on body does not allowed.
+      theError = "Selected shape is in the local selection. Only global selection is allowed.";
+      return false;
+    }
   }
 
   return true;