Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Bantle <hairbat@yahoo.com>2008-03-29 00:04:27 +0300
committerGeoffrey Bantle <hairbat@yahoo.com>2008-03-29 00:04:27 +0300
commit5fa49b59478fb4ce7e54d53edf58915145b23922 (patch)
tree6c4186fb16307ab8c079ce49efeaa1d520fbadcb /release
parentb766441658bf79c0e32b16275432a03078b2f6f0 (diff)
-> FLT I/O: LOD hiding on import
LODS were not getting hidden correctly on import. Fixed now.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/flt_import.py11
1 files changed, 8 insertions, 3 deletions
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: