mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
add center parameter
This commit is contained in:
parent
928770b37b
commit
390f5cbada
@ -512,7 +512,7 @@ class Actor(DirectObject, NodePath):
|
||||
## self.__LODNode.node().setSwitch(index, self.switches[eachLod][0],
|
||||
## self.switches[eachLod][1])
|
||||
|
||||
def addLOD(self, lodName, inDist=0, outDist=0):
|
||||
def addLOD(self, lodName, inDist=0, outDist=0, center=None):
|
||||
"""addLOD(self, string)
|
||||
Add a named node under the LODNode to parent all geometry
|
||||
of a specific LOD under.
|
||||
@ -522,6 +522,8 @@ class Actor(DirectObject, NodePath):
|
||||
self.switches[lodName] = [inDist, outDist]
|
||||
# add the switch distance info
|
||||
self.__LODNode.node().addSwitch(inDist, outDist)
|
||||
if center != None:
|
||||
self.__LODNode.node().setCenter(center)
|
||||
|
||||
def setLOD(self, lodName, inDist=0, outDist=0):
|
||||
"""setLOD(self, string)
|
||||
|
Loading…
x
Reference in New Issue
Block a user