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:
OverloadedOrama 2020-06-21 21:20:39 +03:00
parent f260971056
commit 40a01f1da3
3 changed files with 26 additions and 1 deletions

View file

@ -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)