diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-12-09 19:06:23 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-12-09 19:06:23 +0100 |
commit | 5a60edf1ffc7b30706a3f3101282b5f7a115f9cf (patch) | |
tree | 5131e3c09deac4b36c9cc56553d1009addea73f2 | |
parent | 2d84943a2bb377914beed7767d01275a1f529889 (diff) | |
parent | afb41b283c5b5885f6fa586015aa897ee19f0bb7 (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.cpp | 4 |
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"); |