Skip to content

Commit

Permalink
Add a timeline_updated() signal in Project
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Mar 4, 2024
1 parent b0a8ad1 commit 2e9c4eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Classes/Project.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ extends RefCounted

signal serialized(Dictionary)
signal about_to_deserialize(Dictionary)
signal timeline_updated()

var name := "":
set(value):
Expand Down Expand Up @@ -870,6 +871,7 @@ func _update_frame_ui() -> void:
cel_hbox.get_child(f).frame = f
cel_hbox.get_child(f).button_setup()
_set_timeline_first_and_last_frames()
timeline_updated.emit()


## Update the layer indices and layer/cel buttons
Expand All @@ -881,6 +883,7 @@ func _update_layer_ui() -> void:
for f in frames.size():
cel_hbox.get_child(f).layer = l
cel_hbox.get_child(f).button_setup()
timeline_updated.emit()


## Change the current reference image
Expand Down

0 comments on commit 2e9c4eb

Please sign in to comment.