mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
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.
This commit is contained in:
parent
4537727344
commit
b04c502470
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue