Explorar el Código

revert transformNode _isSynchronized rotation logic which broke gizmo validation test

Trevor Baron hace 7 años
padre
commit
2a9794fee1
Se han modificado 1 ficheros con 4 adiciones y 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;