Gary Hsu 7 tahun lalu
induk
melakukan
bb671be65d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Animations/babylon.runtimeAnimation.ts

+ 1 - 1
src/Animations/babylon.runtimeAnimation.ts

@@ -229,7 +229,7 @@
             let targetPropertyPath = this._animation.targetPropertyPath
 
             if (targetPropertyPath.length > 1) {
-                var property = this._target;
+                var property = this._target[targetPropertyPath[0]];
 
                 for (var index = 1; index < targetPropertyPath.length - 1; index++) {
                     property = property[targetPropertyPath[index]];