@@ -161,6 +161,7 @@ func _on_DeleteFrame_pressed(frame := -1) -> void:
161161
162162
163163func _on_CopyFrame_pressed (frame := - 1 ) -> void :
164+ Global .canvas .selection .transform_content_confirm ()
164165 if frame == - 1 :
165166 frame = Global .current_project .current_frame
166167
@@ -272,6 +273,7 @@ func _on_AnimationTimer_timeout() -> void:
272273 $ AnimationTimer .stop ()
273274 return
274275
276+ Global .canvas .selection .transform_content_confirm ()
275277 var fps = Global .current_project .fps
276278 if animation_forward :
277279 if Global .current_project .current_frame < last_frame :
@@ -355,23 +357,27 @@ func play_animation(play : bool, forward_dir : bool) -> void:
355357
356358
357359func _on_NextFrame_pressed () -> void :
360+ Global .canvas .selection .transform_content_confirm ()
358361 Global .current_project .selected_cels .clear ()
359362 if Global .current_project .current_frame < Global .current_project .frames .size () - 1 :
360363 Global .current_project .current_frame += 1
361364
362365
363366func _on_PreviousFrame_pressed () -> void :
367+ Global .canvas .selection .transform_content_confirm ()
364368 Global .current_project .selected_cels .clear ()
365369 if Global .current_project .current_frame > 0 :
366370 Global .current_project .current_frame -= 1
367371
368372
369373func _on_LastFrame_pressed () -> void :
374+ Global .canvas .selection .transform_content_confirm ()
370375 Global .current_project .selected_cels .clear ()
371376 Global .current_project .current_frame = Global .current_project .frames .size () - 1
372377
373378
374379func _on_FirstFrame_pressed () -> void :
380+ Global .canvas .selection .transform_content_confirm ()
375381 Global .current_project .selected_cels .clear ()
376382 Global .current_project .current_frame = 0
377383
@@ -399,6 +405,7 @@ func _on_BlueRedMode_toggled(button_pressed : bool) -> void:
399405# Layer buttons
400406
401407func add_layer (is_new := true ) -> void :
408+ Global .canvas .selection .transform_content_confirm ()
402409 var new_layers : Array = Global .current_project .layers .duplicate ()
403410 var l := Layer .new ()
404411 if ! is_new : # Clone layer
0 commit comments