Show ResourceID instead of nothing in component UI panel.

This commit is contained in:
a.pilote
2022-07-15 22:08:54 -04:00
parent 06f4913b45
commit de3434703d
7 changed files with 42 additions and 30 deletions

View File

@@ -30,12 +30,12 @@ namespace Nuake
bool Deserialize(const std::string str)
{
BEGIN_DESERIALIZE();
ModelPath = j["ModelPath"];
ModelPath = j["ModelPath"].dump();
ModelResource = CreateRef<Model>();
if (j.contains("ModelResource"))
{
auto res = j["ModelResource"];
auto& res = j["ModelResource"];
ModelResource->Deserialize(res.dump());
}