Skip to content

Commit 9d474d7

Browse files
committed
fix(asset-loader): handle model name correctly
1 parent 6d15c03 commit 9d474d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/asset-loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace our {
131131
void AssetLoader<our::Model>::deserialize(const nlohmann::json& data) {
132132
if (data.is_object()) {
133133
for (auto& [name, desc] : data.items()) {
134-
auto model = new our::Model();
134+
auto model = new our::Model(name);
135135
model->loadFromFile(desc.get<std::string>());
136136
assets[name] = model;
137137
}

0 commit comments

Comments
 (0)