[MIRROR] Fixes that painting asset runtime that happens every time. (#3210)

* Fixes that painting asset runtime that happens every time. (#56746)

Painting titles are not guaranteed to be unique, especially between categories.

* Fixes that painting asset runtime that happens every time.

Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-08 23:48:44 +00:00
committed by GitHub
co-authored by AnturK
parent a5855bd057
commit fc648d8a91
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -488,7 +488,8 @@
var/list/portrait = p
var/png = "data/paintings/[tab]/[portrait["md5"]].png"
if(fexists(png))
assets[portrait["title"]] = png
var/asset_name = "[tab]_[portrait["md5"]]"
assets[asset_name] = png
..() //this is where it registers all these assets we added to the list
/datum/asset/simple/portraits/library