This commit is contained in:
korenkonder
2024-05-06 01:44:21 +03:00
parent 56b8c9a086
commit c5f833704a
15 changed files with 1619 additions and 333 deletions
+7
View File
@@ -1818,6 +1818,13 @@ inline uint32_t object_storage_get_obj_mesh_index_by_hash(uint32_t hash, const c
return -1;
}
inline const char* object_storage_get_obj_name(object_info obj_info) {
obj* obj = object_storage_get_obj(obj_info);
if (obj)
return obj->name;
return 0;
}
inline obj_set* object_storage_get_obj_set(uint32_t set_id) {
auto elem = object_storage_data.find(set_id);
if (elem != object_storage_data.end())