Browse Source

Fix "Uncaught ReferenceError: name is not defined"

Adrian Soucup 5 năm trước cách đây
mục cha
commit
36f1a28d0e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {