Przeglądaj źródła

don't include nametag

David Rose 21 lat temu
rodzic
commit
d3c19148bc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      direct/src/showbase/ShadowDemo.py

+ 1 - 1
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')