Fix tscn not listed as Resource extension
This commit is contained in:
parent
7f181494d1
commit
e3511dd9d7
@ -1363,9 +1363,12 @@ void ResourceFormatLoaderText::get_recognized_extensions_for_type(const String &
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_type == "PackedScene") {
|
if (ClassDB::is_parent_class("PackedScene", p_type)) {
|
||||||
p_extensions->push_back("tscn");
|
p_extensions->push_back("tscn");
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
// Don't allow .tres for PackedScenes.
|
||||||
|
if (p_type != "PackedScene") {
|
||||||
p_extensions->push_back("tres");
|
p_extensions->push_back("tres");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user