diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2008-03-28 03:30:46 +0300 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2008-03-28 03:30:46 +0300 |
commit | d32ec4297d92e1eecdc3288b6c7f9630f98e8828 (patch) | |
tree | e034475bbf30e8d64cca3f3ad1153d3cb4f20f29 /release | |
parent | 812af46d41f4897d809a681ea53a209059228850 (diff) |
-> 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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/flt_import.py | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/release/scripts/flt_import.py b/release/scripts/flt_import.py index 6b6366a6a0d..d051bc58d2d 100644 --- a/release/scripts/flt_import.py +++ b/release/scripts/flt_import.py @@ -1282,21 +1282,23 @@ class InterNode(Node): lodlist = list() for child in self.children: if child.props.has_key('type') and child.props['type'] == 73: - lodlist.append(child) - - 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 + 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 + + #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 |