diff --git a/release/scripts/flt_import.py b/release/scripts/flt_import.py index d051bc58d2d..4ea13e11ccd 100644 --- a/release/scripts/flt_import.py +++ b/release/scripts/flt_import.py @@ -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'] @@ -1273,7 +1273,7 @@ class InterNode(Node): if self.matrix: self.object.setMatrix(self.matrix) - + if self.vis == False: self.object.restrictDisplay = True self.object.restrictRender = True @@ -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: