Jelajahi Sumber

return values revised.

Raanan Weber 7 tahun lalu
induk
melakukan
f38b8f5393
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/Animations/babylon.animationGroup.ts

+ 3 - 1
src/Animations/babylon.animationGroup.ts

@@ -61,6 +61,7 @@ module BABYLON {
 
         /**
          * returning the list of animatables controlled by this animation group.
+         * @returns an Array of animatables.
          */
         public get animatables(): Array<Animatable> {
             return this._animatables;
@@ -255,8 +256,9 @@ module BABYLON {
          * Goes to a specific frame in this animation group
          * 
          * @param frame the frame number to go to
+         * @returns this animation group, for chaining
          */
-        public goToFrame(frame: number) {
+        public goToFrame(frame: number): AnimationGroup {
             if (!this._isStarted) {
                 return this;
             }