mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix eyes for mouse
This commit is contained in:
parent
478671f9fd
commit
84807f30d1
@ -759,7 +759,9 @@ class Actor(PandaObject, NodePath):
|
|||||||
|
|
||||||
If mode == -1, the geometry is simply arranged to be drawn in
|
If mode == -1, the geometry is simply arranged to be drawn in
|
||||||
the correct order, assuming it is already under a
|
the correct order, assuming it is already under a
|
||||||
direct-render scene graph (like the DirectGui system).
|
direct-render scene graph (like the DirectGui system). That
|
||||||
|
is, frontPart is reparented to backPart, and backPart is
|
||||||
|
reordered to appear first among its siblings.
|
||||||
|
|
||||||
If mode == -2, the geometry is arranged to be drawn in the
|
If mode == -2, the geometry is arranged to be drawn in the
|
||||||
correct order, and depth test/write is turned off for
|
correct order, and depth test/write is turned off for
|
||||||
@ -824,6 +826,9 @@ class Actor(PandaObject, NodePath):
|
|||||||
# Draw as a decal.
|
# Draw as a decal.
|
||||||
dt = DecalTransition()
|
dt = DecalTransition()
|
||||||
backPart.arc().setTransition(dt)
|
backPart.arc().setTransition(dt)
|
||||||
|
else:
|
||||||
|
# Reorder the backPart to be the first of its siblings.
|
||||||
|
backPart.reparentTo(backPart.getParent(), -1)
|
||||||
|
|
||||||
#reparent all the front parts to the back part
|
#reparent all the front parts to the back part
|
||||||
frontParts.reparentTo(backPart)
|
frontParts.reparentTo(backPart)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user