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-03-17 19:40:53 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2011-03-17 19:40:53 +0300
commita84e43c48b149593c4abfed8ad1b507f20526cc9 (patch)
treeaba9d7c3345d6dc15132d81cbd45b4662bcc0bbe /source/blender/collada/collada_internal.cpp
parent27abad190a6c3a30cdb109b4c555aea7faf1ea71 (diff)
COLLADA: Don't write empty libraries for geometry, lights, cameras, controllers
Diffstat (limited to 'source/blender/collada/collada_internal.cpp')
-rw-r--r--source/blender/collada/collada_internal.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/collada/collada_internal.cpp b/source/blender/collada/collada_internal.cpp
index 5ae41fee999..4f4d16d3b0d 100644
--- a/source/blender/collada/collada_internal.cpp
+++ b/source/blender/collada/collada_internal.cpp
@@ -277,3 +277,17 @@ std::string get_material_id(Material *mat)
{
return translate_id(id_name(mat)) + "-material";
}
+
+bool has_object_type(Scene *sce, short obtype)
+{
+ Base *base= (Base*) sce->base.first;
+ while(base) {
+ Object *ob = base->object;
+
+ if (ob->type == obtype && ob->data) {
+ return true;
+ }
+ base= base->next;
+ }
+ return false;
+}