mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-17 03:24:43 -05:00
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:
parent
1b1c7f844f
commit
6d87901056
5 changed files with 59 additions and 64 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue