Explorar el Código

fixes #1983 - Canvas2d track node bug

Adam Bowman hace 8 años
padre
commit
154583fcd5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      canvas2D/src/Engine/babylon.canvas2d.ts

+ 2 - 2
canvas2D/src/Engine/babylon.canvas2d.ts

@@ -1574,10 +1574,10 @@
                 this._renderObservable.notifyObservers(this, Canvas2D.RENDEROBSERVABLE_PRE);
             }
 
-            this._updateCanvasState(false);
-
             this._updateTrackedNodes();
 
+            this._updateCanvasState(false);
+
             // Nothing to do is the Canvas is not visible
             if (this.isVisible === false) {
                 return;