[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14274] trunk/blender/release/scripts/ flt_import.py: -> FLT I/O: LOD hiding on import
Geoffrey Bantle
hairbat at yahoo.com
Fri Mar 28 22:04:27 CET 2008
Revision: 14274
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14274
Author: briggs
Date: 2008-03-28 22:04:27 +0100 (Fri, 28 Mar 2008)
Log Message:
-----------
-> FLT I/O: LOD hiding on import
LODS were not getting hidden correctly on import.
Fixed now.
Modified Paths:
--------------
trunk/blender/release/scripts/flt_import.py
Modified: trunk/blender/release/scripts/flt_import.py
===================================================================
--- trunk/blender/release/scripts/flt_import.py 2008-03-28 19:45:07 UTC (rev 14273)
+++ trunk/blender/release/scripts/flt_import.py 2008-03-28 21:04:27 UTC (rev 14274)
@@ -1237,7 +1237,7 @@
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 @@
if self.matrix:
self.object.setMatrix(self.matrix)
-
+
if self.vis == False:
self.object.restrictDisplay = True
self.object.restrictRender = True
@@ -1282,7 +1282,7 @@
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 @@
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:
More information about the Bf-blender-cvs
mailing list