minor adjustments

This commit is contained in:
David Rose 2002-03-18 17:20:33 +00:00
parent e46050a69e
commit f24e3a090f
2 changed files with 10 additions and 4 deletions

View File

@ -489,7 +489,7 @@ class SelectionRay:
# Determine ray direction based upon the mouse coordinates
# Note! This has to be a cam object (of type LensNode)
self.ray.setFromLens( base.camNode, mouseX, mouseY )
self.ct.traverse( targetNodePath.node() )
self.ct.traverse( targetNodePath )
self.numEntries = self.cq.getNumEntries()
self.cq.sortEntries()
# Record cam's current position (used for cycling through
@ -554,7 +554,7 @@ class SelectionRay:
# Note! This has to be a cam object (of type ProjectionNode)
self.ray.setOrigin( origin )
self.ray.setDirection( dir )
self.ct.traverse( targetNodePath.node() )
self.ct.traverse( targetNodePath )
self.numEntries = self.cq.getNumEntries()
self.cq.sortEntries()
return self.numEntries

View File

@ -904,8 +904,14 @@ class DirectSessionPanel(AppShell):
def updateLightInfo(self, page = None):
# Set main lighting button
self.enableLights.set(
render.arc().hasTransition(LightTransition.getClassType()))
try:
# Old scene graph interface
self.enableLights.set(
render.arc().hasTransition(LightTransition.getClassType()))
except:
# No new scene graph equivalent yet
self.enableLights.set(0)
# Set light specific info
if self.activeLight:
l = self.activeLight.getLight()