From f6f40e03e595334e0dcf4da605c73481fcf57f3a Mon Sep 17 00:00:00 2001 From: alikin12 <12932510+alikin12@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:42:01 +0200 Subject: [PATCH] Fix Orama-Interactive#958 (reset custom brush when switch another tool) (#1078) --- src/UI/Buttons/BrushesPopup.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Buttons/BrushesPopup.gd b/src/UI/Buttons/BrushesPopup.gd index 426f5710b..4986adb60 100644 --- a/src/UI/Buttons/BrushesPopup.gd +++ b/src/UI/Buttons/BrushesPopup.gd @@ -96,6 +96,7 @@ static func clear_project_brush() -> void: "Background/Brushes/Categories/ProjectBrushContainer" ) for child in container.get_children(): + container.remove_child(child) child.queue_free() Global.brushes_popup.brush_removed.emit(child.brush)