Browse Source

Merge pull request #1243 from nockawa/master

New attempt to make Sprite size from loading texture working
David Catuhe 9 years ago
parent
commit
1096d98518
1 changed files with 1 additions and 0 deletions
  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();
                     });
                 }
             }