From 8f8b6a6b250048d44f08a2afd3d78d90b243cc67 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 5 Apr 2017 19:05:07 +0300 Subject: [PATCH] Issue #2076 Modification of selection list on "Edit" Modification for providing selection of the issue (approved by DBV) --- src/FeaturesPlugin/FeaturesPlugin_Validators.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp index 5f27c10ce..c4d7cb671 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp @@ -184,13 +184,16 @@ bool FeaturesPlugin_ValidatorBaseForGeneration::isValid(const AttributePtr& theA GeomShapePtr aShape = aSelectionAttr->value(); GeomShapePtr aContextShape = aResultConstruction->shape(); if(!aShape.get()) { + // For possibility to select whole sketch from ObjectBrowser when + // Extrusion already has sub-element of this sketch, the next check + // is commented // Whole sketch selected. - if(aSelectedSketchesFromObjects.find(aResultConstruction) != + /*if(aSelectedSketchesFromObjects.find(aResultConstruction) != aSelectedSketchesFromObjects.cend()) { theError = "Error: Object from this sketch is already selected. " "Sketch is not allowed for selection."; return false; - } + }*/ aSelectedSketches.insert(aResultConstruction); } else { -- 2.39.2