mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Export optimization
process_frame() was being called twice when the export dialog appeared, and the frame number was different than the one already stored in the export dialog
This commit is contained in:
parent
4f1c475c8d
commit
991eb5a615
|
@ -88,7 +88,9 @@ func show_tab() -> void:
|
||||||
if not was_exported:
|
if not was_exported:
|
||||||
frame_number = Global.current_frame + 1
|
frame_number = Global.current_frame + 1
|
||||||
$VBoxContainer/FrameOptions/FrameNumber/FrameNumber.max_value = Global.canvases.size() + 1
|
$VBoxContainer/FrameOptions/FrameNumber/FrameNumber.max_value = Global.canvases.size() + 1
|
||||||
|
var prev_frame_number = $VBoxContainer/FrameOptions/FrameNumber/FrameNumber.value
|
||||||
$VBoxContainer/FrameOptions/FrameNumber/FrameNumber.value = frame_number
|
$VBoxContainer/FrameOptions/FrameNumber/FrameNumber.value = frame_number
|
||||||
|
if prev_frame_number == frame_number:
|
||||||
process_frame()
|
process_frame()
|
||||||
$VBoxContainer/FrameOptions.show()
|
$VBoxContainer/FrameOptions.show()
|
||||||
ExportTab.SPRITESHEET:
|
ExportTab.SPRITESHEET:
|
||||||
|
@ -469,7 +471,7 @@ func _on_ExportDialog_about_to_show() -> void:
|
||||||
$VBoxContainer/Options/Resize.value = resize
|
$VBoxContainer/Options/Resize.value = resize
|
||||||
$VBoxContainer/Options/Interpolation.selected = interpolation
|
$VBoxContainer/Options/Interpolation.selected = interpolation
|
||||||
$VBoxContainer/Path/PathLineEdit.text = directory_path
|
$VBoxContainer/Path/PathLineEdit.text = directory_path
|
||||||
$Popups/PathDialog.current_path = directory_path
|
$Popups/PathDialog.current_dir = directory_path
|
||||||
$VBoxContainer/File/FileLineEdit.text = file_name
|
$VBoxContainer/File/FileLineEdit.text = file_name
|
||||||
$VBoxContainer/File/FileFormat.selected = file_format
|
$VBoxContainer/File/FileFormat.selected = file_format
|
||||||
show_tab()
|
show_tab()
|
||||||
|
|
Loading…
Reference in a new issue