Fix crash when importing model with materials and Split Objects enabled

This commit is contained in:
Wojtek Figat
2023-09-19 23:07:10 +02:00
parent 417d911bab
commit a56ce92867
4 changed files with 25 additions and 9 deletions

View File

@@ -545,7 +545,7 @@ namespace FlaxEditor.GUI
Render2D.DrawRectangle(clientRect.MakeExpanded(-2.0f), borderColor);
// Check if has selected item
if (_selectedIndices.Count > 0)
if (_selectedIndices != null && _selectedIndices.Count > 0)
{
string text = _selectedIndices.Count == 1 ? _items[_selectedIndices[0]] : "Multiple Values";