فهرست منبع

don't include nametag

David Rose 21 سال پیش
والد
کامیت
d3c19148bc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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')