Fix lost of gdextension on editor startup.

Co-authored-by: NetroScript <noreply@enostrion.com>"
This commit is contained in:
Hilderin
2024-10-09 19:40:49 -04:00
parent 4c4e673344
commit fbd1643176
4 changed files with 37 additions and 22 deletions

View File

@@ -1431,8 +1431,8 @@ void ResourceFormatLoaderText::get_recognized_extensions_for_type(const String &
p_extensions->push_back("tscn");
}
// Don't allow .tres for PackedScenes.
if (p_type != "PackedScene") {
// Don't allow .tres for PackedScenes or GDExtension.
if (p_type != "PackedScene" && p_type != "GDExtension") {
p_extensions->push_back("tres");
}
}