aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/scene_format_text.cpp
diff options
context:
space:
mode:
authorFranklin Sobrinho2016-01-24 18:38:37 -0300
committerFranklin Sobrinho2016-01-24 18:38:37 -0300
commit41ae83e41562213a8cd53643f124a13731a098ad (patch)
treed829660a3687513e91cb26b2c65540f5e89cd68c /scene/resources/scene_format_text.cpp
parentc247f5ad61f2575c321fb8117ed4212611e8cdf4 (diff)
downloadgodot-41ae83e41562213a8cd53643f124a13731a098ad.tar.gz
godot-41ae83e41562213a8cd53643f124a13731a098ad.tar.zst
godot-41ae83e41562213a8cd53643f124a13731a098ad.zip
Fixed small inconsistencies with the text format
Diffstat (limited to '')
-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 2f18e70d7..4520171ea 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -1374,9 +1374,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
}