Fix item not reloaded on resource import.

This commit is contained in:
2022-11-09 13:51:00 +08:00
parent f311eb5e8d
commit 1f621082c6

View File

@@ -29,7 +29,6 @@ namespace Cryville.Crtr.Browsing {
private bool LoadItem(int id, GameObject obj) { private bool LoadItem(int id, GameObject obj) {
var bi = obj.GetComponent<BrowserItem>(); var bi = obj.GetComponent<BrowserItem>();
if (bi.Id == id) return true;
var item = ResourceManager.GetItemMeta(id); var item = ResourceManager.GetItemMeta(id);
bi.Load(id, item); bi.Load(id, item);
return true; return true;