From 387eb03d26f361a5340b74ea323e4df99dbd8717 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 14 Aug 2026 16:58:51 +0200 Subject: [PATCH] paint: fix debug tab --- paint/sources/ui/tab_debug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paint/sources/ui/tab_debug.c b/paint/sources/ui/tab_debug.c index 701d89b9..3fca2940 100644 --- a/paint/sources/ui/tab_debug.c +++ b/paint/sources/ui/tab_debug.c @@ -83,9 +83,8 @@ void tab_debug_draw(ui_handle_t *htab) { if (ui_panel(h1, "Scene", false, false, false)) { tab_debug_line_counter = 0; - object_t *scene = _scene_root->children->buffer[0]; - for (i32 i = 0; i < scene->children->length; ++i) { - object_t *c = scene->children->buffer[i]; + for (i32 i = 0; i < _scene_root->children->length; ++i) { + object_t *c = _scene_root->children->buffer[i]; tab_debug_draw_list(ui_handle(__ID__), c); } }