Fixed weird behaviour with drop down menus and crash

This commit is contained in:
Antoine Pilote
2023-08-02 18:47:30 -04:00
parent 4552b0ee69
commit 7543d5aca4
2 changed files with 16 additions and 3 deletions

View File

@@ -87,6 +87,11 @@ void EditorSelectionPanel::DrawNone()
void EditorSelectionPanel::DrawEntity(Nuake::Entity entity)
{
if (!entity.IsValid())
{
return;
}
DrawAddComponentMenu(entity);
// Draw each component properties panels.