David Catuhe 6 年之前
父节点
当前提交
cf44380e1f
共有 2 个文件被更改,包括 10 次插入8 次删除
  1. 0 8
      src/Animations/animatable.ts
  2. 10 0
      src/scene.ts

+ 0 - 8
src/Animations/animatable.ts

@@ -548,14 +548,6 @@ declare module "../scene" {
         getAllAnimatablesByTarget(target: any): Array<Animatable>;
 
         /**
-         * Will stop the animation of the given target
-         * @param target - the target
-         * @param animationName - the name of the animation to stop (all animations will be stopped if both this and targetMask are empty)
-         * @param targetMask - a function that determines if the animation should be stopped based on its target (all animations will be stopped if both this and animationName are empty)
-         */
-        stopAnimation(target: any, animationName?: string, targetMask?: (target: any) => boolean): void;
-
-        /**
         * Stops and removes all animations that have been applied to the scene
         */
         stopAllAnimations(): void;

+ 10 - 0
src/scene.ts

@@ -2126,6 +2126,16 @@ export class Scene extends AbstractScene implements IAnimatable {
     }
 
     /**
+     * Will stop the animation of the given target
+     * @param target - the target
+     * @param animationName - the name of the animation to stop (all animations will be stopped if both this and targetMask are empty)
+     * @param targetMask - a function that determines if the animation should be stopped based on its target (all animations will be stopped if both this and animationName are empty)
+     */
+    public stopAnimation(target: any, animationName?: string, targetMask?: (target: any) => boolean): void {
+        // Do nothing as code will be provided by animation component
+    }
+
+    /**
      * Removes the given animation group from this scene.
      * @param toRemove The animation group to remove
      * @returns The index of the removed animation group