Updated Loading of .shmodel files and updated original models #303
|
@ -6,6 +6,11 @@ namespace SHADE
|
|||
template<typename T>
|
||||
std::enable_if_t<std::is_base_of_v<SHAssetData, T>, T* const> SHAssetManager::GetData(AssetID id) noexcept
|
||||
{
|
||||
if (id == 0)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!assetData.contains(id))
|
||||
{
|
||||
for (auto const& asset : std::ranges::views::values(assetCollection))
|
||||
|
|
Loading…
Reference in New Issue