浏览代码

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 7 年之前
父节点
当前提交
c2d72e420e
共有 1 个文件被更改,包括 4 次插入2 次删除
  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;