From: nds Date: Wed, 5 Apr 2017 16:05:07 +0000 (+0300) Subject: Issue #2076 Modification of selection list on "Edit" X-Git-Tag: V_2.7.0~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f8b6a6b250048d44f08a2afd3d78d90b243cc67;p=modules%2Fshaper.git Issue #2076 Modification of selection list on "Edit" Modification for providing selection of the issue (approved by DBV) --- 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 {