diff options
Diffstat (limited to 'source/blender/collada/GeometryExporter.cpp')
-rw-r--r-- | source/blender/collada/GeometryExporter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/collada/GeometryExporter.cpp b/source/blender/collada/GeometryExporter.cpp index 9edfbe14a71..332df0318e9 100644 --- a/source/blender/collada/GeometryExporter.cpp +++ b/source/blender/collada/GeometryExporter.cpp @@ -28,6 +28,8 @@ */ +#include <sstream> + #include "COLLADASWPrimitves.h" #include "COLLADASWSource.h" #include "COLLADASWVertices.h" @@ -167,7 +169,9 @@ void GeometryExporter::createPolylist(int material_index, // sets material name if (ma) { - polylist.setMaterial(translate_id(id_name(ma))); + std::ostringstream ostr; + ostr << translate_id(id_name(ma)) << material_index+1; + polylist.setMaterial(ostr.str()); } COLLADASW::InputList &til = polylist.getInputList(); |