Use asset manager in image constructor

This commit is contained in:
oakes
2014-08-10 17:10:55 -04:00
parent 44392352fd
commit 8965588d98

View File

@@ -292,7 +292,8 @@ based on the file at `path`.
(map? arg)
(Image. ^TextureRegion (:object arg))
(string? arg)
(Image. (Texture. ^String arg))
(Image. (or (u/load-asset arg Texture)
(Texture. ^String arg)))
:else
(Image. arg))))