Fixed ComponentEditWindow showing component editor after it was deleted

This commit is contained in:
Simon Lübeß
2023-07-31 16:35:38 +02:00
parent 0d015b485e
commit 11a57f5285
@@ -112,7 +112,8 @@ namespace GlitchyEditor.EditWindows
if (nodeOpen)
{
showComponentEditor(entity, component);
if (entity.TryGetComponent<TComponent>(let actualComponent))
showComponentEditor(entity, actualComponent);
ImGui.TreePop();
}