From 7552d242a33808f2194388297eca7b7f4374fe1e Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Mon, 3 Jun 2024 17:28:46 +0800 Subject: [PATCH] Fix same importer will be added multiple times in `get_importers_for_extension` --- core/io/resource_importer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/io/resource_importer.cpp b/core/io/resource_importer.cpp index fcf4a727ca49..4c166504391a 100644 --- a/core/io/resource_importer.cpp +++ b/core/io/resource_importer.cpp @@ -410,6 +410,7 @@ void ResourceFormatImporter::get_importers_for_extension(const String &p_extensi for (const String &F : local_exts) { if (p_extension.to_lower() == F) { r_importers->push_back(importers[i]); + break; } } }