]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Delete: never delete results. About "Part" deletion: only one selected part can be...
authornds <natalia.donis@opencascade.com>
Fri, 29 May 2015 07:40:14 +0000 (10:40 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 29 May 2015 07:40:40 +0000 (10:40 +0300)
Fix for delete sketch features.

src/PartSet/PartSet_Module.cpp

index 8476879f15390da243419a3a981793e23ffc68d8..b71077c8661da15a99bb395b772a4a1a9516c79f 100644 (file)
@@ -532,8 +532,12 @@ bool PartSet_Module::deleteObjects()
     QObjectPtrList::const_iterator anIt = aSelectedObj.begin(), aLast = aSelectedObj.end();
     for ( ; anIt != aLast; anIt++) {
       ObjectPtr anObject = *anIt;
-      if (mySketchMgr->isObjectOfSketch(anObject))
-        aSketchObjects.append(anObject);
+      if (mySketchMgr->isObjectOfSketch(anObject)) {
+        // sketch feature should be used in this list because workshop deletes features only
+        // results are skipped
+        FeaturePtr aSketchFeature = ModelAPI_Feature::feature(anObject);
+        aSketchObjects.append(aSketchFeature);
+      }
     }
     // if the selection contains only local selected presentations from other sketches,
     // the Delete operation should not be done at all