mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Fix tscn not listed as Resource extension
(cherry picked from commit e3511dd9d7637488368fbf82b53a029fa70fce5e)
This commit is contained in:
parent
4fe20cbfb1
commit
b7907d951c
@ -1198,9 +1198,12 @@ void ResourceFormatLoaderText::get_recognized_extensions_for_type(const String &
|
||||
return;
|
||||
}
|
||||
|
||||
if (p_type == "PackedScene") {
|
||||
if (ClassDB::is_parent_class("PackedScene", p_type)) {
|
||||
p_extensions->push_back("tscn");
|
||||
} else {
|
||||
}
|
||||
|
||||
// Don't allow .tres for PackedScenes.
|
||||
if (p_type != "PackedScene") {
|
||||
p_extensions->push_back("tres");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user