diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-05-27 02:46:28 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-05-27 02:46:28 +0400 |
commit | 822362189badefd6c0014f608d36d98e8ab57282 (patch) | |
tree | 3f1a8a574aa311b11bbefe5f4191149e659a9f7f /source/blender/collada/collada_internal.cpp | |
parent | 54b64cfd612922054f014460f1c08ec4b0374a3d (diff) |
[#31607] Collada: (Exporter) Implementation of 'use Object Instantiation' Option
Diffstat (limited to 'source/blender/collada/collada_internal.cpp')
-rw-r--r-- | source/blender/collada/collada_internal.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/collada/collada_internal.cpp b/source/blender/collada/collada_internal.cpp index fa99d460184..81e5f88a3f8 100644 --- a/source/blender/collada/collada_internal.cpp +++ b/source/blender/collada/collada_internal.cpp @@ -251,6 +251,13 @@ std::string get_geometry_id(Object *ob) return translate_id(id_name(ob->data)) + "-mesh"; } +std::string get_geometry_id(Object *ob, bool use_instantiation) +{ + std::string geom_name = (use_instantiation) ? id_name(ob->data) : id_name(ob); + + return translate_id(geom_name) + "-mesh"; +} + std::string get_light_id(Object *ob) { return translate_id(id_name(ob)) + "-light"; |