Browse Source

fixed TT shadowTraverser crash

Darren Ranalli 16 years ago
parent
commit
166f966441
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/ShadowPlacer.py

+ 1 - 1
direct/src/showbase/ShadowPlacer.py

@@ -122,10 +122,10 @@ class ShadowPlacer(DirectObject.DirectObject):
         assert self.cTrav.hasCollider(self.cRayNodePath)
         didIt = self.cTrav.removeCollider(self.cRayNodePath)
         assert didIt
-        self.cRayNodePath.detachNode()
         # Now that we have disabled collisions, make one more pass
         # right now to ensure we aren't standing in a wall.
         self.oneTimeCollide()
+        self.cRayNodePath.detachNode()
         self.isActive = 0
         if __debug__:
             self.activeCount -= 1