mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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
|
# Determine ray direction based upon the mouse coordinates
|
||||||
# Note! This has to be a cam object (of type LensNode)
|
# Note! This has to be a cam object (of type LensNode)
|
||||||
self.ray.setFromLens( base.camNode, mouseX, mouseY )
|
self.ray.setFromLens( base.camNode, mouseX, mouseY )
|
||||||
self.ct.traverse( targetNodePath.node() )
|
self.ct.traverse( targetNodePath )
|
||||||
self.numEntries = self.cq.getNumEntries()
|
self.numEntries = self.cq.getNumEntries()
|
||||||
self.cq.sortEntries()
|
self.cq.sortEntries()
|
||||||
# Record cam's current position (used for cycling through
|
# 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)
|
# Note! This has to be a cam object (of type ProjectionNode)
|
||||||
self.ray.setOrigin( origin )
|
self.ray.setOrigin( origin )
|
||||||
self.ray.setDirection( dir )
|
self.ray.setDirection( dir )
|
||||||
self.ct.traverse( targetNodePath.node() )
|
self.ct.traverse( targetNodePath )
|
||||||
self.numEntries = self.cq.getNumEntries()
|
self.numEntries = self.cq.getNumEntries()
|
||||||
self.cq.sortEntries()
|
self.cq.sortEntries()
|
||||||
return self.numEntries
|
return self.numEntries
|
||||||
|
@ -904,8 +904,14 @@ class DirectSessionPanel(AppShell):
|
|||||||
|
|
||||||
def updateLightInfo(self, page = None):
|
def updateLightInfo(self, page = None):
|
||||||
# Set main lighting button
|
# Set main lighting button
|
||||||
self.enableLights.set(
|
try:
|
||||||
render.arc().hasTransition(LightTransition.getClassType()))
|
# 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
|
# Set light specific info
|
||||||
if self.activeLight:
|
if self.activeLight:
|
||||||
l = self.activeLight.getLight()
|
l = self.activeLight.getLight()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user