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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user