David Catuhe 7 سال پیش
والد
کامیت
780d610f0c
2فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 1 3
      src/Mesh/babylon.transformNode.ts
  2. 1 1
      src/babylon.node.ts

+ 1 - 3
src/Mesh/babylon.transformNode.ts

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

+ 1 - 1
src/babylon.node.ts

@@ -392,7 +392,7 @@
                 return false;
             }
 
-            if (!this.isSynchronizedWithParent()) {
+            if (this._parentNode && !this.isSynchronizedWithParent()) {
                 return false;
             }