ソースを参照

Merge pull request #2258 from abow/canvas2DFixes

fixes #1983 - Canvas2d track node bug
David Catuhe 8 年 前
コミット
0f13c6bbb5
1 ファイル変更2 行追加2 行削除
  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;