]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2076 Modification of selection list on "Edit"
authornds <nds@opencascade.com>
Wed, 5 Apr 2017 16:05:07 +0000 (19:05 +0300)
committernds <nds@opencascade.com>
Wed, 5 Apr 2017 16:05:07 +0000 (19:05 +0300)
Modification for providing selection of the issue (approved by DBV)

src/FeaturesPlugin/FeaturesPlugin_Validators.cpp

index 5f27c10ce8af8fc3a349e28e890b610f396bff35..c4d7cb6717d052a930753e94a8b1c91c0aa58a99 100644 (file)
@@ -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 {