Browse Source

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 years ago
parent
commit
37b2a59910
1 changed files with 2 additions and 2 deletions
  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;
             }