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>2011-02-28 17:24:52 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2011-02-28 17:24:52 +0300
commit82b21ba1663b253b4bde318599eedd062b5e9f64 (patch)
treebbe6dbf3c966834cd223054ad8e86b0099cefbac /source/blender/collada/collada_internal.cpp
parent9234cb6e30ed36dfcfae794824fcbb88618e060f (diff)
Fix [#26213] Collada exporter id's not unique
Reported by Kevin Yoon <material> could get same id as <node>, prevent that by suffixing -material.
Diffstat (limited to 'source/blender/collada/collada_internal.cpp')
-rw-r--r--source/blender/collada/collada_internal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/collada/collada_internal.cpp b/source/blender/collada/collada_internal.cpp
index 1eaa043e180..5ae41fee999 100644
--- a/source/blender/collada/collada_internal.cpp
+++ b/source/blender/collada/collada_internal.cpp
@@ -272,3 +272,8 @@ std::string get_camera_id(Object *ob)
{
return translate_id(id_name(ob)) + "-camera";
}
+
+std::string get_material_id(Material *mat)
+{
+ return translate_id(id_name(mat)) + "-material";
+}