From 78164ebad6af4d191b45b9ce4a90f1efe276eeb9 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 31 Jul 2003 15:22:01 +0000 Subject: [PATCH] fix problem with setShadow after creation --- direct/src/gui/OnscreenText.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/gui/OnscreenText.py b/direct/src/gui/OnscreenText.py index ab16bdd322..66f519ec6d 100644 --- a/direct/src/gui/OnscreenText.py +++ b/direct/src/gui/OnscreenText.py @@ -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()