diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-12-09 13:56:14 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-12-09 13:56:14 -0300 |
commit | afb41b283c5b5885f6fa586015aa897ee19f0bb7 (patch) | |
tree | 5131e3c09deac4b36c9cc56553d1009addea73f2 /scene/resources | |
parent | 2d84943a2bb377914beed7767d01275a1f529889 (diff) |
Fix tscn format not being recongnized by EditorFileSystem
Diffstat (limited to 'scene/resources')
-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"); |