]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_Placement.cpp
Salome HOME
Fix for the issue #1129
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Placement.cpp
index 1fcfa7618e3d27a44f9e9f4f65b400ca9ad2f7f0..a8e4b4138432ec11bf105c68f40cee609bba59ca 100644 (file)
@@ -55,7 +55,8 @@ void FeaturesPlugin_Placement::execute()
   for(int anObjectsIndex = 0; anObjectsIndex < anObjectsSelList->size(); anObjectsIndex++) {
     std::shared_ptr<ModelAPI_AttributeSelection> anObjectAttr = anObjectsSelList->value(anObjectsIndex);
     std::shared_ptr<GeomAPI_Shape> anObject = anObjectAttr->value();
-    if(!anObject.get()) {
+    if(!anObject.get()) { // may be for not-activated parts
+      eraseResults();
       return;
     }
     anObjects.push_back(anObject);