mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed ComponentEditWindow showing component editor after it was deleted
This commit is contained in:
@@ -112,7 +112,8 @@ namespace GlitchyEditor.EditWindows
|
|||||||
|
|
||||||
if (nodeOpen)
|
if (nodeOpen)
|
||||||
{
|
{
|
||||||
showComponentEditor(entity, component);
|
if (entity.TryGetComponent<TComponent>(let actualComponent))
|
||||||
|
showComponentEditor(entity, actualComponent);
|
||||||
|
|
||||||
ImGui.TreePop();
|
ImGui.TreePop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user