Browse Source

Merge pull request #2258 from abow/canvas2DFixes

fixes #1983 - Canvas2d track node bug
David Catuhe 8 years ago
parent
commit
0f13c6bbb5
1 changed files with 2 additions and 2 deletions
  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._renderObservable.notifyObservers(this, Canvas2D.RENDEROBSERVABLE_PRE);
             }
             }
 
 
-            this._updateCanvasState(false);
-
             this._updateTrackedNodes();
             this._updateTrackedNodes();
 
 
+            this._updateCanvasState(false);
+
             // Nothing to do is the Canvas is not visible
             // Nothing to do is the Canvas is not visible
             if (this.isVisible === false) {
             if (this.isVisible === false) {
                 return;
                 return;