From b04c502470fab2d84d8af4bafb9a97dc9da7c147 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 7 Jul 2024 16:26:23 +0300 Subject: [PATCH] Fix bug in import preview dialog of the apply all button being unpressed when the import options change Most likely caused by #957. The line `setup_smart_slice(false)` was caused the bug, hopefully I'm not breaking anything by removing it. --- src/UI/Dialogs/ImportPreviewDialog.gd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/UI/Dialogs/ImportPreviewDialog.gd b/src/UI/Dialogs/ImportPreviewDialog.gd index 2a21eecf6..0eda592ef 100644 --- a/src/UI/Dialogs/ImportPreviewDialog.gd +++ b/src/UI/Dialogs/ImportPreviewDialog.gd @@ -280,17 +280,15 @@ func synchronize() -> void: d_brush_type_option.item_selected.emit(type) +## Reset some options func _hide_all_options() -> void: - # reset some options smart_slice = false apply_all.disabled = false spritesheet_options.get_node("SmartSliceToggle").button_pressed = false at_frame_option.get_node("AtFrameSpinbox").allow_greater = false - setup_smart_slice(false) - # hide items texture_rect.get_child(0).visible = false texture_rect.get_child(1).visible = false - for child: Node in import_options.get_children(): + for child in import_options.get_children(): child.visible = false