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:
parent
f5d07e660d
commit
02278e5fee
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue