diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 4911d5c702d..b3abbb9e70f 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -3205,7 +3205,6 @@ void EditorFileSystem::reimport_files(const Vector &p_files) { } Error EditorFileSystem::reimport_append(const String &p_file, const HashMap &p_custom_options, const String &p_custom_importer, Variant p_generator_parameters) { - ERR_FAIL_COND_V_MSG(!importing, ERR_INVALID_PARAMETER, "Can only append files to import during a current reimport process."); Vector reloads; reloads.append(p_file); diff --git a/editor/import/editor_import_plugin.cpp b/editor/import/editor_import_plugin.cpp index 27b59d3bef5..82710103e1f 100644 --- a/editor/import/editor_import_plugin.cpp +++ b/editor/import/editor_import_plugin.cpp @@ -214,6 +214,7 @@ Error EditorImportPlugin::_append_import_external_resource(const String &p_file, } Error EditorImportPlugin::append_import_external_resource(const String &p_file, const HashMap &p_custom_options, const String &p_custom_importer, Variant p_generator_parameters) { + ERR_FAIL_COND_V_MSG(!EditorFileSystem::get_singleton()->is_importing(), ERR_INVALID_PARAMETER, "Can only append files to import during a current reimport process."); return EditorFileSystem::get_singleton()->reimport_append(p_file, p_custom_options, p_custom_importer, p_generator_parameters); }