Explorar o código

Merge pull request #5122 from TrevorDev/revertSynchronizedRotation

revert transformNode _isSynchronized rotation logic which broke gizmo…
David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
5e3d1054ee
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/Mesh/babylon.transformNode.ts

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

@@ -212,8 +212,10 @@ module BABYLON {
             if (this._rotationQuaternion) {
                 if (!this._cache.rotationQuaternion.equals(this._rotationQuaternion))
                     return false;
-            } else if (!this._cache.rotation.equals(this._rotation))
-                return false;
+            }
+
+            if (!this._cache.rotation.equals(this._rotation))
+                return false;                
 
             if (!this._cache.scaling.equals(this._scaling))
                 return false;