Browse Source

Fix "Uncaught ReferenceError: name is not defined"

Adrian Soucup 5 years ago
parent
commit
36f1a28d0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Bones/skeleton.ts

+ 1 - 1
src/Bones/skeleton.ts

@@ -416,7 +416,7 @@ export class Skeleton implements IAnimatable {
      * @returns the original skeleton
      * @returns the original skeleton
      */
      */
     public static MakeAnimationAdditive(skeleton: Skeleton, referenceFrame = 0, range: string): Nullable<Skeleton> {
     public static MakeAnimationAdditive(skeleton: Skeleton, referenceFrame = 0, range: string): Nullable<Skeleton> {
-        var rangeValue = skeleton.getAnimationRange(name);
+        var rangeValue = skeleton.getAnimationRange(range);
 
 
         // We can't make a range additive if it doesn't exist
         // We can't make a range additive if it doesn't exist
         if (!rangeValue) {
         if (!rangeValue) {