From 9e72ba28acc5c40cee8f1303d11f0553c1ec2518 Mon Sep 17 00:00:00 2001 From: RealDanTheMan Date: Sat, 8 Jun 2024 18:39:19 +0000 Subject: [PATCH] App gui input polling is now explicitly called by the parent app window --- pyrousel/appgui.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyrousel/appgui.py b/pyrousel/appgui.py index 3998f59..e8cb9bf 100644 --- a/pyrousel/appgui.py +++ b/pyrousel/appgui.py @@ -11,7 +11,7 @@ class AppGUI(object): def __init__(self, win_handle: _GLFWwindow): imgui.create_context() - self.__impl = IMRenderer(win_handle) + self.__impl = IMRenderer(win_handle, attach_callbacks=True) self.import_settings = ImportSettingsPanel() self.scene_stats = SceneStatsPanel() self.overlays = OverlaysPanel() @@ -20,14 +20,12 @@ def __init__(self, win_handle: _GLFWwindow): self.light_settings = LightSettingsPanel() self.transforms = TransformsPanel() - def __ProcessInputs(self) -> None: + def ProcessInputs(self) -> None: imgui.capture_mouse_from_app(True) self.__impl.process_inputs() def __Update(self) -> None: """Process GUI inputs and builds UI widgets""" - self.__ProcessInputs() - imgui.new_frame() imgui.begin("Property Panel") self.import_settings.Update()