From 6effaa2430b0ada79098fc94a65597be5632f764 Mon Sep 17 00:00:00 2001 From: LMW Date: Sat, 31 Oct 2026 13:39:33 +0800 Subject: [PATCH] Fixed sample tool visible outside of pixels node editor --- material_maker/widgets/pixels_edit/pixels_editor.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/material_maker/widgets/pixels_edit/pixels_editor.gd b/material_maker/widgets/pixels_edit/pixels_editor.gd index f9e9869a7e..e702c85205 100644 --- a/material_maker/widgets/pixels_edit/pixels_editor.gd +++ b/material_maker/widgets/pixels_edit/pixels_editor.gd @@ -35,7 +35,7 @@ func _ready() -> void: get_parent().add_menu_bar(menu_bar, self) func is_mouse_in_canvas() -> bool: - return Rect2(draw_offset, draw_size).has_point(get_local_mouse_position()) + return Rect2(draw_offset, draw_size).has_point(get_local_mouse_position()) and is_visible_in_tree() func _draw() -> void: super._draw()