diff --git a/direct/src/showbase/ShadowDemo.py b/direct/src/showbase/ShadowDemo.py index 0f82e56e90..63b543ec48 100755 --- a/direct/src/showbase/ShadowDemo.py +++ b/direct/src/showbase/ShadowDemo.py @@ -109,7 +109,7 @@ def avatarShadow(): # 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. - objectPath = base.localAvatar + objectPath = base.localAvatar.getGeomNode() shadowCamera = objectPath.attachNewNode('shadowCamera') lightPath = shadowCamera.attachNewNode('lightPath')