invalidLayers is a set. Don't replace it with something else.
This commit is contained in:
parent
3c72a69679
commit
11d1301f32
@ -202,9 +202,12 @@ class WorldScene(scenegraph.Node):
|
|||||||
"""
|
"""
|
||||||
Mark the chunk for regenerating vertex data
|
Mark the chunk for regenerating vertex data
|
||||||
"""
|
"""
|
||||||
|
if invalidLayers is None:
|
||||||
|
invalidLayers = Layer.AllLayers
|
||||||
|
|
||||||
node = self.chunkRenderInfo.get((cx, cz))
|
node = self.chunkRenderInfo.get((cx, cz))
|
||||||
if node:
|
if node:
|
||||||
node.invalidLayers = invalidLayers or Layer.AllLayers
|
node.invalidLayers.update(invalidLayers)
|
||||||
|
|
||||||
_fastLeaves = False
|
_fastLeaves = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user