mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix problem with setShadow after creation
This commit is contained in:
parent
51214e65bd
commit
78164ebad6
@ -328,8 +328,8 @@ class OnscreenText(PandaObject, NodePath):
|
||||
self.textNode.freeze()
|
||||
if shadow[3] != 0:
|
||||
# If we have a shadow color, create a shadow.
|
||||
self.textNode.setShadowColor(*shadow)
|
||||
self.textNode.setShadow(*shadowOffset)
|
||||
self.textNode.setShadowColor(shadow[0], shadow[1], shadow[2], shadow[3])
|
||||
self.textNode.setShadow(0.04, 0.04)
|
||||
else:
|
||||
# Otherwise, remove the shadow.
|
||||
self.textNode.clearShadow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user