[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14267] trunk/blender/release/scripts/ flt_import.py: -> Double Sided Faces fix for FLT import
Geoffrey Bantle
hairbat at yahoo.com
Fri Mar 28 01:30:47 CET 2008
Revision: 14267
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14267
Author: briggs
Date: 2008-03-28 01:30:46 +0100 (Fri, 28 Mar 2008)
Log Message:
-----------
-> Double Sided Faces fix for FLT import
Faces marked as double sided in FLT file were
not getting the proper face flags on import to blender.
Fixed.
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 00:26:48 UTC (rev 14266)
+++ trunk/blender/release/scripts/flt_import.py 2008-03-28 00:30:46 UTC (rev 14267)
@@ -1282,21 +1282,23 @@
lodlist = list()
for child in self.children:
if child.props.has_key('type') and child.props['type'] == 73:
- lodlist.append(child)
+ if child.props['5d!switch out'] != 0:
+ child.vis = False
+ #lodlist.append(child)
+
+ #def LODmin(a,b):
+ # if a.props['5d!switch in'] < b.props['5d!switch in']:
+ # return a
+ # return b
- def LODmin(a,b):
- if a.props['5d!switch in'] < b.props['5d!switch in']:
- return a
- return b
-
- min= None
- if len(lodlist) > 1:
- for lod in lodlist:
- lod.vis = False
- min = lodlist[0]
- for i in xrange(len(lodlist)):
- min= LODmin(min,lodlist[i])
- min.vis = True
+ #min= None
+ #if len(lodlist) > 1:
+ # for lod in lodlist:
+ # lod.vis = False
+ # min = lodlist[0]
+ # for i in xrange(len(lodlist)):
+ # min= LODmin(min,lodlist[i])
+ # min.vis = True
Node.blender_import(self) # Attach faces to self.faceLs
More information about the Bf-blender-cvs
mailing list