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 | |
parent | 2ee74be88cb045d403bc5145647da4262f131077 (diff) |
Export only objects on visible layers. This ensures we can hide for instance bone shapes.
-rw-r--r-- | source/blender/collada/DocumentExporter.cpp | 2 | ||||
-rw-r--r-- | source/blender/collada/GeometryExporter.h | 3 |
2 files changed, 4 insertions, 1 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; diff --git a/source/blender/collada/GeometryExporter.h b/source/blender/collada/GeometryExporter.h index 7f3426a1915..d9d265a66fc 100644 --- a/source/blender/collada/GeometryExporter.h +++ b/source/blender/collada/GeometryExporter.h @@ -110,7 +110,8 @@ struct GeometryFunctor { Object *ob = base->object; if (ob->type == OB_MESH && ob->data - && !(export_selected && !(ob->flag && SELECT))) { + && !(export_selected && !(ob->flag && SELECT)) + && ((sce->lay & ob->lay)!=0)) { f(ob); } base= base->next; |