summaryrefslogtreecommitdiff
path: root/scene/resources/scene_format_text.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-25 10:58:50 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-25 10:58:50 +0100
commit6ceb1c3a9f83234e0703fba1ecb42f09e705a02e (patch)
tree55997b41d840e940f44f9dd0d7fd9abff208b0e4 /scene/resources/scene_format_text.cpp
parent31a4762feab58d1eb68d02c9591a80662d383361 (diff)
parent41ae83e41562213a8cd53643f124a13731a098ad (diff)
Merge pull request #3440 from TheHX/issue-2946
Fixed small inconsistencies with the text format
Diffstat (limited to 'scene/resources/scene_format_text.cpp')
-rw-r--r--scene/resources/scene_format_text.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index a6cba389f4..f3dcf16e28 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -1380,9 +1380,10 @@ bool ResourceFormatSaverText::recognize(const RES& p_resource) const {
}
void ResourceFormatSaverText::get_recognized_extensions(const RES& p_resource,List<String> *p_extensions) const {
- p_extensions->push_back("tres"); //text resource
if (p_resource->get_type()=="PackedScene")
p_extensions->push_back("tscn"); //text scene
+ else
+ p_extensions->push_back("tres"); //text resource
}