1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix crash reported in #960

This commit is contained in:
Emmanouil Papadeas 2023-12-15 18:54:10 +02:00
parent 8d09713774
commit b42c2d4cae

View file

@ -687,7 +687,7 @@ class ImportAPI:
## time of import.
func add_import_option(import_name: StringName, import_scene_preload: PackedScene):
var id = OpenSave.add_import_option(import_name, import_scene_preload)
ExtensionsApi.add_action("add_import_option")
ExtensionsApi.add_action("ImportAPI", "add_import_option")
return id
## Removes the import option with [param id] from Pixelorama.
@ -695,7 +695,7 @@ class ImportAPI:
var import_name = OpenSave.custom_import_names.find_key(id)
OpenSave.custom_import_names.erase(import_name)
OpenSave.custom_importer_scenes.erase(id)
ExtensionsApi.remove_action("add_import_option")
ExtensionsApi.remove_action("ImportAPI", "add_import_option")
## Gives access to the basic commonly used signals.