GeomAPI_ShapeHierarchy anObjects;
std::list<ResultPtr> aParts;
+ std::string theTextureFile;
if (!FeaturesPlugin_Tools::shapesFromSelectionList(
- anObjectsSelList, isKeepSubShapes, anObjects, aParts))
+ anObjectsSelList, isKeepSubShapes, anObjects, aParts, theTextureFile))
return;
// Parameters of rotation.
ResultBodyPtr aResultBody = document()->createBody(data(), aResultIndex);
FeaturesPlugin_Tools::loadModifiedShapes(aResultBody, anOriginalShapes, ListOfShape(),
aMakeShapeList, *anIt, "Rotated");
+ aResultBody->setTextureFile(theTextureFile);
setResult(aResultBody, aResultIndex++);
}