1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

some bug fixes

This commit is contained in:
Variable 2023-05-17 16:20:42 +05:00 committed by GitHub
parent dd23394d52
commit dee18a7c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,6 @@ func _on_FrameTagDialog_about_to_show() -> void:
func _on_FrameTagDialog_popup_hide() -> void:
Global.dialog_open(false)
Global.current_project.toggle_frame_buttons()
func _on_AddTag_pressed() -> void:
@ -136,6 +135,8 @@ func _on_TagOptions_confirmed() -> void:
Global.current_project.undo_redo.add_undo_property(
Global.current_project, "animation_tags", Global.current_project.animation_tags
)
Global.current_project.undo_redo.add_do_method(Global.current_project, "toggle_frame_buttons")
Global.current_project.undo_redo.add_undo_method(Global.current_project, "toggle_frame_buttons")
Global.current_project.undo_redo.commit_action()
_on_FrameTagDialog_about_to_show()
@ -155,6 +156,12 @@ func _on_TagOptions_custom_action(action: String) -> void:
Global.current_project.undo_redo.add_undo_property(
Global.current_project, "animation_tags", Global.current_project.animation_tags
)
Global.current_project.undo_redo.add_do_method(
Global.current_project, "toggle_frame_buttons"
)
Global.current_project.undo_redo.add_undo_method(
Global.current_project, "toggle_frame_buttons"
)
Global.current_project.undo_redo.commit_action()
options_dialog.hide()