From fc2592fabbc922c8ccba67bcb0e107cfbbad6db2 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Mon, 14 Mar 2005 01:13:46 +0000 Subject: [PATCH] stash shadow so it does not come back when showcode shows it --- direct/src/showbase/ShadowDemo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShadowDemo.py b/direct/src/showbase/ShadowDemo.py index 7e55a5847a..c67662e7d6 100755 --- a/direct/src/showbase/ShadowDemo.py +++ b/direct/src/showbase/ShadowDemo.py @@ -105,7 +105,8 @@ class ShadowCaster: def avatarShadow(): # Turn off the existing drop shadow. - base.localAvatar.dropShadow.hide() + # stash it so that when the game hides and shows it, it will still be gone + base.localAvatar.dropShadow.stash() # Set up a new node to hold the "light": this is an abitrary point # somewhere above the avatar, looking down, as if from the sun. @@ -150,7 +151,8 @@ def piratesAvatarShadow(): def arbitraryShadow(node): # Turn off the existing drop shadow, if any if hasattr(node, "dropShadow"): - base.localAvatar.dropShadow.hide() + # stash it so that when the game hides and shows it, it will still be gone + base.localAvatar.dropShadow.stash() # Set up a new node to hold the "light": this is an abitrary point # somewhere above the node, looking down, as if from the sun.