fix problem with setShadow after creation

This commit is contained in:
David Rose 2003-07-31 15:22:01 +00:00
parent 51214e65bd
commit 78164ebad6

View File

@ -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()