ソースを参照

New attempt to make Sprite size from loading texture working

nockawa 9 年 前
コミット
cd53b11921
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/Canvas2d/babylon.sprite2d.ts

+ 1 - 0
src/Canvas2d/babylon.sprite2d.ts

@@ -317,6 +317,7 @@
                 } else {
                     texture.onLoadObservable.add(() => {
                         this.size = <Size>texture.getSize();
+                        this._positioningDirty();
                     });
                 }
             }