Compile non-visible nodes
Otherwise they never get compiled again, as setting visible doesn't mark the parent as childNeedsRecompile
This commit is contained in:
parent
f8b30d007a
commit
bbc3263ad7
@ -86,8 +86,7 @@ class RenderNode(object):
|
||||
def compile(self):
|
||||
if self.childNeedsRecompile:
|
||||
for node in self.children:
|
||||
if node.sceneNode.visible:
|
||||
node.compile()
|
||||
node.compile()
|
||||
self.childNeedsRecompile = False
|
||||
|
||||
for state in self.sceneNode.states:
|
||||
|
Reference in New Issue
Block a user