forked from bartvdbraak/blender
-> FLT I/O: LOD hiding on import
LODS were not getting hidden correctly on import. Fixed now.
This commit is contained in:
parent
b766441658
commit
5fa49b5947
@ -1237,7 +1237,7 @@ class InterNode(Node):
|
|||||||
self.mesh.activeUVLayer = actuvlayer
|
self.mesh.activeUVLayer = actuvlayer
|
||||||
|
|
||||||
def blender_import(self):
|
def blender_import(self):
|
||||||
if self.vis and self.parent:
|
if self.vis and self.parent.object:
|
||||||
self.vis = self.parent.vis
|
self.vis = self.parent.vis
|
||||||
name = self.props['id']
|
name = self.props['id']
|
||||||
|
|
||||||
@ -1282,7 +1282,7 @@ class InterNode(Node):
|
|||||||
lodlist = list()
|
lodlist = list()
|
||||||
for child in self.children:
|
for child in self.children:
|
||||||
if child.props.has_key('type') and child.props['type'] == 73:
|
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
|
child.vis = False
|
||||||
#lodlist.append(child)
|
#lodlist.append(child)
|
||||||
|
|
||||||
@ -1994,6 +1994,11 @@ class Database(InterNode):
|
|||||||
self.scene.properties['FLT']['Main'] = 0
|
self.scene.properties['FLT']['Main'] = 0
|
||||||
self.scene.properties['FLT']['Filename'] = self.bname
|
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
|
#import color palette
|
||||||
carray = list()
|
carray = list()
|
||||||
for color in self.col_pal:
|
for color in self.col_pal:
|
||||||
|
Loading…
Reference in New Issue
Block a user