Browse Source

can't use *shadow

David Rose 23 years ago
parent
commit
e866143a8f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/gui/OnscreenText.py

+ 3 - 1
direct/src/gui/OnscreenText.py

@@ -176,7 +176,9 @@ class OnscreenText(PandaObject, NodePath):
 
 
         if shadow[3] != 0:
         if shadow[3] != 0:
             # If we have a shadow color, create a shadow.
             # If we have a shadow color, create a shadow.
-            textNode.setShadowColor(*shadow)
+            # Can't use the *shadow interface because it might be a VBase4.
+            #textNode.setShadowColor(*shadow)
+            textNode.setShadowColor(shadow[0], shadow[1], shadow[2], shadow[3])
             textNode.setShadow(*shadowOffset)
             textNode.setShadow(*shadowOffset)
 
 
         if frame[3] != 0:
         if frame[3] != 0: