-> FLT I/O: LOD hiding on import

LODS were not getting hidden correctly on import.
Fixed now.
This commit is contained in:
Geoffrey Bantle 2008-03-28 21:04:27 +00:00
parent b766441658
commit 5fa49b5947

@ -1237,7 +1237,7 @@ class InterNode(Node):
self.mesh.activeUVLayer = actuvlayer
def blender_import(self):
if self.vis and self.parent:
if self.vis and self.parent.object:
self.vis = self.parent.vis
name = self.props['id']
@ -1282,7 +1282,7 @@ class InterNode(Node):
lodlist = list()
for child in self.children:
if child.props.has_key('type') and child.props['type'] == 73:
if child.props['5d!switch out'] != 0:
if child.props['6d!switch out'] != 0.0:
child.vis = False
#lodlist.append(child)
@ -1994,6 +1994,11 @@ class Database(InterNode):
self.scene.properties['FLT']['Main'] = 0
self.scene.properties['FLT']['Filename'] = self.bname
for child in self.children:
if child.props.has_key('type') and child.props['type'] == 73:
if child.props['6d!switch out'] != 0.0:
child.vis = False
#import color palette
carray = list()
for color in self.col_pal: