Salome HOME
Fix for the issue #1129
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Translation.cpp
index 423ea9459aed423d9865c008c595aa6452a20e6d..c55d23d818391355b24abc3609adda4dec98f075 100644 (file)
@@ -47,7 +47,8 @@ void FeaturesPlugin_Translation::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);