Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2012-05-09 12:14:49 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2012-05-09 12:14:49 +0400
commitd644069860674dd576bae275bf914b385b38053b (patch)
treee5aee4f8aa6025398389d9d7b98767c0c18c5bfa /source/blender/collada/GeometryExporter.cpp
parent94fa7060a88a90d146f9dbf28c73a2ec5cd2d791 (diff)
Apply [#31335] COLLADA: fix for odd names for materials in exported dae files
Patch by Gaia Clary This patch removes the index numbering from materials, which is not necessary.
Diffstat (limited to 'source/blender/collada/GeometryExporter.cpp')
-rw-r--r--source/blender/collada/GeometryExporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/GeometryExporter.cpp b/source/blender/collada/GeometryExporter.cpp
index 05d4080dcb6..ba41e603a29 100644
--- a/source/blender/collada/GeometryExporter.cpp
+++ b/source/blender/collada/GeometryExporter.cpp
@@ -209,7 +209,7 @@ void GeometryExporter::createPolylist(short material_index,
// sets material name
if (ma) {
std::ostringstream ostr;
- ostr << translate_id(id_name(ma)) << material_index+1;
+ ostr << translate_id(id_name(ma));
polylist.setMaterial(ostr.str());
}