From c87dce1190884a47a33357ba594a3b4679660603 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 27 Sep 2005 23:33:56 +0000 Subject: [PATCH] bit rot --- direct/src/showbase/ShadowDemo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShadowDemo.py b/direct/src/showbase/ShadowDemo.py index c67662e7d6..e910d88803 100755 --- a/direct/src/showbase/ShadowDemo.py +++ b/direct/src/showbase/ShadowDemo.py @@ -145,14 +145,14 @@ def avatarShadow(): def piratesAvatarShadow(): a = avatarShadow() # Force the lod to be 0 at all times - base.localAvatar.getGeomNode().getChild(1).node().forceSwitch(0) + base.localAvatar.getGeomNode().getChild(0).node().forceSwitch(0) return a def arbitraryShadow(node): # Turn off the existing drop shadow, if any if hasattr(node, "dropShadow"): # stash it so that when the game hides and shows it, it will still be gone - base.localAvatar.dropShadow.stash() + node.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.