瀏覽代碼

GLTF Animation Target Override Fixes

MackeyK24 6 年之前
父節點
當前提交
f8a904374e
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      loaders/src/glTF/2.0/glTFLoader.ts

+ 10 - 0
loaders/src/glTF/2.0/glTFLoader.ts

@@ -1149,6 +1149,16 @@ export class GLTFLoader implements IGLTFLoader {
         });
     }
 
+    /**
+     * Loads a glTF animation channel.
+     * @param context The context when loading the asset
+     * @param animationContext The context of the animation when loading the asset
+     * @param animation The glTF animation property
+     * @param channel The glTF animation channel property
+     * @param babylonAnimationGroup The babylon animation group property
+     * @param animationTargetOverride The babylon animation channel target override property. My be null.
+     * @returns A void promise when the channel load is complete
+     */
     public _loadAnimationChannelAsync(context: string, animationContext: string, animation: IAnimation, channel: IAnimationChannel, babylonAnimationGroup: AnimationGroup, animationTargetOverride: Nullable<IAnimatable> = null): Promise<void> {
         if (channel.target.node == undefined) {
             return Promise.resolve();