1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-21 13:03:13 +00:00

Fix crash when importing a new project on an empty project

This commit is contained in:
Manolis Papadeas 2021-06-24 20:32:30 +03:00
parent f5d07e660d
commit 02278e5fee

View file

@ -484,6 +484,7 @@ func frame_changed(value : int) -> void:
var _current_layer : int = cel[1]
if _current_frame < Global.frame_ids.get_child_count():
Global.frame_ids.get_child(_current_frame).add_color_override("font_color", Global.control.theme.get_color("Selected Color", "Label"))
if layers:
if _current_frame < layers[_current_layer].frame_container.get_child_count():
layers[_current_layer].frame_container.get_child(_current_frame).pressed = true