diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-08-19 02:56:41 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-08-19 02:56:41 +0400 |
commit | c6465197763d9110361a795fcc6a2292790a7fc7 (patch) | |
tree | f7c40f944b2b723b6c8096190276cf4f7ae855c1 /source/blender/collada/DocumentExporter.cpp | |
parent | 2ee74be88cb045d403bc5145647da4262f131077 (diff) |
Export only objects on visible layers. This ensures we can hide for instance bone shapes.
Diffstat (limited to 'source/blender/collada/DocumentExporter.cpp')
-rw-r--r-- | source/blender/collada/DocumentExporter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp index 0a30365658e..32956921f5b 100644 --- a/source/blender/collada/DocumentExporter.cpp +++ b/source/blender/collada/DocumentExporter.cpp @@ -195,6 +195,7 @@ public: Object *ob = base->object; if (!ob->parent) { + if(sce->lay & ob->lay) { switch(ob->type) { case OB_MESH: case OB_CAMERA: @@ -208,6 +209,7 @@ public: writeNodes(ob, sce); break; } + } } base= base->next; |