Export only objects on visible layers. This ensures we can hide for instance bone shapes.

This commit is contained in:
Nathan Letwory 2011-08-18 22:56:41 +00:00
parent 2ee74be88c
commit c646519776
2 changed files with 4 additions and 1 deletions

@ -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;

@ -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;