Merge more code together for meshes

This commit is contained in:
Wojtek Figat
2024-12-23 23:28:01 +01:00
parent 9f648caac8
commit 723a882824
8 changed files with 299 additions and 316 deletions

View File

@@ -163,12 +163,16 @@ public:
}
};
ModelBase::~ModelBase()
{
ASSERT(_streamingTask == nullptr);
}
void ModelBase::SetupMaterialSlots(int32 slotsCount)
{
CHECK(slotsCount >= 0 && slotsCount < 4096);
if (!IsVirtual() && WaitForLoaded())
return;
ScopeLock lock(Locker);
const int32 prevCount = MaterialSlots.Count();