mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
minor adjustments
This commit is contained in:
parent
e46050a69e
commit
f24e3a090f
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user