From b40fef2c97d6baf51b44cf854015ecbc45122485 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Wed, 6 Dec 2023 04:29:35 +0200 Subject: [PATCH] Fix the layer order being wrong --- src/Classes/Project.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classes/Project.gd b/src/Classes/Project.gd index c02ddda56..a5a870e04 100644 --- a/src/Classes/Project.gd +++ b/src/Classes/Project.gd @@ -861,7 +861,6 @@ func _update_frame_ui() -> void: ## Update the layer indices and layer/cel buttons func _update_layer_ui() -> void: - order_layers() for l in layers.size(): layers[l].index = l Global.layer_vbox.get_child(layers.size() - 1 - l).layer_index = l @@ -869,3 +868,4 @@ func _update_layer_ui() -> void: for f in frames.size(): cel_hbox.get_child(f).layer = l cel_hbox.get_child(f).button_setup() + order_layers()