summaryrefslogtreecommitdiff
path: root/core/variant_parser.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-25 08:29:39 +0100
committerGitHub <noreply@github.com>2020-02-25 08:29:39 +0100
commit2ca5f22bcea8fdbc8b490d9e8757573196578f5d (patch)
tree9dd1925474fa771a4849f7636c9f4225d95b45fe /core/variant_parser.cpp
parenta4125bbe2f89186c951137321b51525079b1f85e (diff)
parent1569c47c1ac9b083e0920350b9db1ab95dfe193b (diff)
Merge pull request #36525 from nathanwfranke/fix-project-godot-class-name
Fix project.godot for projects with class_name
Diffstat (limited to 'core/variant_parser.cpp')
-rw-r--r--core/variant_parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp
index 44bf90674b..56d33c10f4 100644
--- a/core/variant_parser.cpp
+++ b/core/variant_parser.cpp
@@ -1110,6 +1110,10 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
value = token.value;
return OK;
+ } else if (token.type == TK_STRING_NAME) {
+
+ value = token.value;
+ return OK;
} else if (token.type == TK_COLOR) {
value = token.value;