diff --git a/GlitchyEditor/src/EditWindows/ComponentEditWindow.bf b/GlitchyEditor/src/EditWindows/ComponentEditWindow.bf index 43ab701..aaa269b 100644 --- a/GlitchyEditor/src/EditWindows/ComponentEditWindow.bf +++ b/GlitchyEditor/src/EditWindows/ComponentEditWindow.bf @@ -112,7 +112,8 @@ namespace GlitchyEditor.EditWindows if (nodeOpen) { - showComponentEditor(entity, component); + if (entity.TryGetComponent(let actualComponent)) + showComponentEditor(entity, actualComponent); ImGui.TreePop(); }