mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-18 13:04:42 -05:00
Added import image as a new layer of the current project
Just realized that I forgot to add undo/redo support of importing images as new frame/layer, oops. Will fix next.
This commit is contained in:
parent
f260971056
commit
40a01f1da3
3 changed files with 26 additions and 1 deletions
|
|
@ -37,6 +37,8 @@ func _on_PreviewDialog_confirmed() -> void:
|
|||
OpenSave.open_image_as_spritesheet(path, image, spritesheet_horizontal, spritesheet_vertical)
|
||||
elif current_import_option == ImageImportOptions.NEW_FRAME:
|
||||
OpenSave.open_image_as_new_frame(image)
|
||||
elif current_import_option == ImageImportOptions.NEW_LAYER:
|
||||
OpenSave.open_image_as_new_layer(image, path.get_file())
|
||||
elif current_import_option == ImageImportOptions.PALETTE:
|
||||
Global.palette_container.on_palette_import_file_selected(path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue