From 8cf0f511124c50a001bcd2e7d921a4f13da3bf89 Mon Sep 17 00:00:00 2001 From: Isaac Dadzie <4581114+idadzie@users.noreply.github.com> Date: Tue, 27 Jun 2023 12:26:03 +0000 Subject: [PATCH] Fix UnboundLocalError --- viz/drag_widget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/viz/drag_widget.py b/viz/drag_widget.py index 912b378..aa0c454 100644 --- a/viz/drag_widget.py +++ b/viz/drag_widget.py @@ -90,6 +90,7 @@ def load_points(self, suffix): @imgui_utils.scoped_by_object_id def __call__(self, show=True): viz = self.viz + reset = False if show: with imgui_utils.grayed_out(self.disabled_time != 0): imgui.text('Drag')