Преглед на файлове

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))
             if (!this._cache.position.equals(this.position))
                 return false;
                 return false;
 
 
-            if (this.rotationQuaternion) {
-                if (!this._cache.rotationQuaternion.equals(this.rotationQuaternion))
+            if (this._rotationQuaternion) {
+                if (!this._cache.rotationQuaternion.equals(this._rotationQuaternion))
                     return false;
                     return false;
             }
             }