|
@@ -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();
|