瀏覽代碼

Fixed an issue with using a getter to read rotationQuaternion vs _rotationQuaterion property which saved both performance and large GC hits due to temporaries created

andi smithers 7 年之前
父節點
當前提交
37b2a59910
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Mesh/babylon.transformNode.ts

+ 2 - 2
src/Mesh/babylon.transformNode.ts

@@ -229,8 +229,8 @@ module BABYLON {
             if (!this._cache.position.equals(this.position))
                 return false;
 
-            if (this.rotationQuaternion) {
-                if (!this._cache.rotationQuaternion.equals(this.rotationQuaternion))
+            if (this._rotationQuaternion) {
+                if (!this._cache.rotationQuaternion.equals(this._rotationQuaternion))
                     return false;
             }