summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-09 19:06:23 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-09 19:06:23 +0100
commit5a60edf1ffc7b30706a3f3101282b5f7a115f9cf (patch)
tree5131e3c09deac4b36c9cc56553d1009addea73f2
parent2d84943a2bb377914beed7767d01275a1f529889 (diff)
parentafb41b283c5b5885f6fa586015aa897ee19f0bb7 (diff)
Merge pull request #3028 from TheHX/pr-tscn-format
Fix tscn format not being recongnized by EditorFileSystem
-rw-r--r--scene/resources/scene_format_text.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index 5f41dc2ce8..851083aecf 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -932,6 +932,10 @@ Ref<ResourceInteractiveLoader> ResourceFormatLoaderText::load_interactive(const
void ResourceFormatLoaderText::get_recognized_extensions_for_type(const String& p_type,List<String> *p_extensions) const {
+ if (p_type=="") {
+ get_recognized_extensions(p_extensions);
+ return;
+ }
if (p_type=="PackedScene")
p_extensions->push_back("tscn");