mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fixed TT shadowTraverser crash
This commit is contained in:
parent
e90652e89e
commit
166f966441
@ -122,10 +122,10 @@ class ShadowPlacer(DirectObject.DirectObject):
|
|||||||
assert self.cTrav.hasCollider(self.cRayNodePath)
|
assert self.cTrav.hasCollider(self.cRayNodePath)
|
||||||
didIt = self.cTrav.removeCollider(self.cRayNodePath)
|
didIt = self.cTrav.removeCollider(self.cRayNodePath)
|
||||||
assert didIt
|
assert didIt
|
||||||
self.cRayNodePath.detachNode()
|
|
||||||
# Now that we have disabled collisions, make one more pass
|
# Now that we have disabled collisions, make one more pass
|
||||||
# right now to ensure we aren't standing in a wall.
|
# right now to ensure we aren't standing in a wall.
|
||||||
self.oneTimeCollide()
|
self.oneTimeCollide()
|
||||||
|
self.cRayNodePath.detachNode()
|
||||||
self.isActive = 0
|
self.isActive = 0
|
||||||
if __debug__:
|
if __debug__:
|
||||||
self.activeCount -= 1
|
self.activeCount -= 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user