From 55006f3f362570cce28e7c801b8c3d26cbe8a048 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 26 Apr 2016 16:09:14 +0300 Subject: [PATCH] Issue #1369: Fixed validator. --- src/BuildPlugin/BuildPlugin_Validators.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/BuildPlugin/BuildPlugin_Validators.cpp b/src/BuildPlugin/BuildPlugin_Validators.cpp index 5097fea40..dfdd20d39 100644 --- a/src/BuildPlugin/BuildPlugin_Validators.cpp +++ b/src/BuildPlugin/BuildPlugin_Validators.cpp @@ -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; -- 2.30.2