|
|
|
|
@ -139,7 +139,7 @@ rotateEntity(Entity* e, glm::vec3 axis, float radians)
|
|
|
|
|
model* |
|
|
|
|
getModelByPath(RenderState* rs, const char* filepath) |
|
|
|
|
{ |
|
|
|
|
model* mdl = assetGetCached(rs->assets, utilFNV64a_str(filepath)); |
|
|
|
|
model* mdl = assetGetCachedModel(rs->assets, utilFNV64a_str(filepath)); |
|
|
|
|
|
|
|
|
|
if (!mdl) |
|
|
|
|
mdl = assetLoadFromFile(rs->assets, rs->asset_arena, filepath); |
|
|
|
|
|