forked from bartvdbraak/blender
Export only objects on visible layers. This ensures we can hide for instance bone shapes.
This commit is contained in:
parent
2ee74be88c
commit
c646519776
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user