skipping objects whose name begins with "_"

git-svn-id: svn://anubis/misc/phy_export@207 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-11-15 23:10:18 +00:00
parent bbc1a770bc
commit bc293f5b0c

View File

@ -13,6 +13,8 @@ def write(filename):
out = file(filename, "w") out = file(filename, "w")
sce = bpy.data.scenes.active sce = bpy.data.scenes.active
for ob in sce.objects: for ob in sce.objects:
if ob.name[0] == '_':
continue
if ob.type == 'Mesh': if ob.type == 'Mesh':
if len(ob.data.faces) == 1: if len(ob.data.faces) == 1:
# found a plane # found a plane