Editor: Fix InspectorPanel AddComponent popup crash

- Remove SeparatorText which causes PopStyleVar mismatch in ImGui
- Add stderr redirection for better error capture
- Add debug logging to InspectorPanel
- Fix EditorLayer commented out undefined functions
This commit is contained in:
2026-03-25 12:56:51 +08:00
parent 0834ccb7aa
commit cad6f586fb
6 changed files with 70 additions and 88 deletions

View File

@@ -41,15 +41,16 @@ void EditorLayer::onUpdate(float dt) {
void EditorLayer::onEvent(void* event) {
ImGuiIO& io = ImGui::GetIO();
if (ImGui::IsKeyPressed(ImGuiKey_F5)) {
TogglePlay();
}
if (ImGui::IsKeyPressed(ImGuiKey_F6)) {
if (GetEditorMode() != EditorMode::Edit) {
TogglePause();
}
}
// TODO: These functions don't exist - need to implement them
// if (ImGui::IsKeyPressed(ImGuiKey_F5)) {
// TogglePlay();
// }
//
// if (ImGui::IsKeyPressed(ImGuiKey_F6)) {
// if (GetEditorMode() != EditorMode::Edit) {
// TogglePause();
// }
// }
}
void EditorLayer::onImGuiRender() {