mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
fix crash and error with texture atlas
- crashes at Project Export Settings > Preview Atlas
- error message when export project
```
ERROR: EditorImportExport::get_import_plugin_by_name: Condition ' !by_idx.has(p_string) ' is true. returned: Ref<EditorImportPlugin>()
At: tools\editor\editor_import_export.cpp:1548
```
it is caused by 8be2fabbe5 (diff-67a74bd708380c6b3baa717bb178dd47R802)
This commit is contained in:
parent
182ee80b7d
commit
fc73f0c8b0
2 changed files with 2 additions and 2 deletions
|
@ -889,7 +889,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
|
|||
|
||||
|
||||
|
||||
Ref<EditorTextureImportPlugin> plugin = EditorImportExport::get_singleton()->get_import_plugin_by_name("texture_atlas");
|
||||
Ref<EditorTextureImportPlugin> plugin = EditorImportExport::get_singleton()->get_import_plugin_by_name("texture");
|
||||
Error err = plugin->import2(dst_file,imd,get_image_compression(),true);
|
||||
if (err) {
|
||||
|
||||
|
|
|
@ -1057,7 +1057,7 @@ void ProjectExportDialog::_group_atlas_preview() {
|
|||
imd->set_option("atlas",true);
|
||||
imd->set_option("crop",true);
|
||||
|
||||
Ref<EditorTextureImportPlugin> plugin = EditorImportExport::get_singleton()->get_import_plugin_by_name("texture_atlas");
|
||||
Ref<EditorTextureImportPlugin> plugin = EditorImportExport::get_singleton()->get_import_plugin_by_name("texture");
|
||||
Error err = plugin->import2(dst_file,imd,EditorExportPlatform::IMAGE_COMPRESSION_NONE,true);
|
||||
if (err) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue