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

@ -225,8 +225,7 @@ func handle_loading_files(files : PoolStringArray) -> void:
if file.get_extension().to_lower() == "pxo":
_on_OpenSprite_file_selected(file)
else:
if file == files[0]:
$ImportSprites.new_frame = false
$ImportSprites.new_frame = false
$ImportSprites._on_ImportSprites_files_selected([file])
$ImportSprites.new_frame = true