Explorar o código

Fix "Uncaught ReferenceError: name is not defined"

Adrian Soucup %!s(int64=5) %!d(string=hai) anos
pai
achega
36f1a28d0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
      */
     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
         if (!rangeValue) {