mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
flush now properly clears non-lod geometry
This commit is contained in:
parent
25226dec55
commit
5fafdbb8e7
@ -464,6 +464,10 @@ class Actor(DirectObject, NodePath):
|
|||||||
self.__LODNode.removeNode()
|
self.__LODNode.removeNode()
|
||||||
self.__LODNode = None
|
self.__LODNode = None
|
||||||
|
|
||||||
|
for child in self.__geomNode.getChildrenAsList():
|
||||||
|
child.removeNode()
|
||||||
|
|
||||||
|
|
||||||
self.__hasLOD = 0
|
self.__hasLOD = 0
|
||||||
|
|
||||||
# accessing
|
# accessing
|
||||||
@ -543,6 +547,7 @@ class Actor(DirectObject, NodePath):
|
|||||||
"""
|
"""
|
||||||
if (node == None):
|
if (node == None):
|
||||||
node = LODNode("lod")
|
node = LODNode("lod")
|
||||||
|
|
||||||
if self.__LODNode:
|
if self.__LODNode:
|
||||||
self.__LODNode = node
|
self.__LODNode = node
|
||||||
else:
|
else:
|
||||||
@ -550,6 +555,7 @@ class Actor(DirectObject, NodePath):
|
|||||||
self.__hasLOD = 1
|
self.__hasLOD = 1
|
||||||
self.switches = {}
|
self.switches = {}
|
||||||
|
|
||||||
|
|
||||||
def useLOD(self, lodName):
|
def useLOD(self, lodName):
|
||||||
"""
|
"""
|
||||||
Make the Actor ONLY display the given LOD
|
Make the Actor ONLY display the given LOD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user