ResultPartPtr anOrigin = std::dynamic_pointer_cast<ModelAPI_ResultPart>(*aContext);
ResultPartPtr aResultPart = document()->copyPart(anOrigin, data(), aResultIndex);
aResultPart->setTrsf(*aContext, aTrsf);
- setResult(aResultPart);
+ setResult(aResultPart, aResultIndex);
} else {
GeomAlgoAPI_Rotation aRotationAlgo(aBaseShape, anAxis, anAngle);
ResultPartPtr anOrigin = std::dynamic_pointer_cast<ModelAPI_ResultPart>(*aContext);
ResultPartPtr aResultPart = document()->copyPart(anOrigin, data(), aResultIndex);
aResultPart->setTrsf(*aContext, aTrsf);
- setResult(aResultPart);
+ setResult(aResultPart, aResultIndex);
} else {
GeomAlgoAPI_Translation aTranslationAlgo(aBaseShape, anAxis, aDistance);