Salome HOME
High level objects history implementation for Translation, Rotation and Scale features.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Rotation.cpp
index 01547d62f91c041c62b0414019ec2f1c46b9dc73..d0754a9dce1e7fedb974268acbd6ad8db4aeb954 100755 (executable)
@@ -173,8 +173,15 @@ void FeaturesPlugin_Rotation::performTranslationByAxisAndAngle()
       }
 
       ResultBodyPtr aResultBody = document()->createBody(data(), aResultIndex);
-      aResultBody->storeModified(aBaseShape, aRotationAlgo->shape());
-      FeaturesPlugin_Tools::loadModifiedShapes(aResultBody, aBaseShape, aRotationAlgo, "Rotated");
+
+      ListOfShape aShapes;
+      aShapes.push_back(aBaseShape);
+      FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
+                                               aShapes,
+                                               ListOfShape(),
+                                               aRotationAlgo,
+                                               aRotationAlgo->shape(),
+                                               "Rotated");
       setResult(aResultBody, aResultIndex);
     }
     aResultIndex++;
@@ -272,8 +279,15 @@ void FeaturesPlugin_Rotation::performTranslationByThreePoints()
       }
 
       ResultBodyPtr aResultBody = document()->createBody(data(), aResultIndex);
-      aResultBody->storeModified(aBaseShape, aRotationAlgo->shape());
-      FeaturesPlugin_Tools::loadModifiedShapes(aResultBody, aBaseShape, aRotationAlgo, "Rotated");
+
+      ListOfShape aShapes;
+      aShapes.push_back(aBaseShape);
+      FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
+                                               aShapes,
+                                               ListOfShape(),
+                                               aRotationAlgo,
+                                               aRotationAlgo->shape(),
+                                               "Rotated");
       setResult(aResultBody, aResultIndex);
     }
     aResultIndex++;