Explorar o código

Minor change to node.ts so that we update the cache always in hasNewParent(). I tried using updateCache and pass it on through to hasNewParent but this did not work. hence TRUE. Doubled scene rendering performance for us with this change.

andi smithers %!s(int64=7) %!d(string=hai) anos
pai
achega
ec59ccfb51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/babylon.node.ts

+ 1 - 1
src/babylon.node.ts

@@ -351,7 +351,7 @@
 
         /** @hidden */
         public isSynchronized(updateCache?: boolean): boolean {
-            var check = this.hasNewParent();
+            var check = this.hasNewParent(true);
 
             check = check || !this.isSynchronizedWithParent();