diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2012-05-09 12:14:49 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2012-05-09 12:14:49 +0400 |
commit | d644069860674dd576bae275bf914b385b38053b (patch) | |
tree | e5aee4f8aa6025398389d9d7b98767c0c18c5bfa /source/blender/collada/InstanceWriter.cpp | |
parent | 94fa7060a88a90d146f9dbf28c73a2ec5cd2d791 (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/InstanceWriter.cpp')
-rw-r--r-- | source/blender/collada/InstanceWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/InstanceWriter.cpp b/source/blender/collada/InstanceWriter.cpp index a605bdeefcc..f83289ff5f5 100644 --- a/source/blender/collada/InstanceWriter.cpp +++ b/source/blender/collada/InstanceWriter.cpp @@ -52,7 +52,7 @@ void InstanceWriter::add_material_bindings(COLLADASW::BindMaterial& bind_materia std::string matid(get_material_id(ma)); matid = translate_id(matid); std::ostringstream ostr; - ostr << translate_id(id_name(ma)) << a+1; + ostr << translate_id(id_name(ma)); COLLADASW::InstanceMaterial im(ostr.str(), COLLADASW::URI(COLLADABU::Utils::EMPTY_STRING, matid)); // create <bind_vertex_input> for each uv map |