Jelajahi Sumber

revert transformNode _isSynchronized rotation logic which broke gizmo validation test

Trevor Baron 7 tahun lalu
induk
melakukan
2a9794fee1
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  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;