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:
-rw-r--r--release/scripts/flt_import.py32
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