Imported image files now open in an new tab

Keep in mind that opening an image file as a new frame might not work properly yet, if the target image has a different size.
This commit is contained in:
OverloadedOrama 2020-06-05 19:51:06 +03:00
parent 1b1c7f844f
commit 6d87901056
5 changed files with 59 additions and 64 deletions

View file

@ -206,7 +206,8 @@ func frame_changed(value : int) -> void:
layer.frame_container.get_child(i).pressed = false
# Select the new frame
Global.frame_ids.get_child(current_frame).add_color_override("font_color", Global.control.theme.get_color("Selected Color", "Label"))
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 current_frame < layers[current_layer].frame_container.get_child_count():
layers[current_layer].frame_container.get_child(current_frame).pressed = true