Fix crash when resizing existing MaterialSlots collection for model

This commit is contained in:
Wojtek Figat
2021-01-12 19:09:42 +01:00
parent d7696c4765
commit 259c419c36

View File

@@ -53,7 +53,7 @@ public:
ScopeLock lock(Locker);
const int32 prevCount = MaterialSlots.Count();
MaterialSlots.Resize(slotsCount);
MaterialSlots.Resize(slotsCount, false);
// Initialize slot names
for (int32 i = prevCount; i < slotsCount; i++)