Browse Source

Fix project.godot for projects with class_name

Fixes #36438
nathanwfranke 5 years ago
parent
commit
1569c47c1a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/variant_parser.cpp

+ 4 - 0
core/variant_parser.cpp

@@ -1108,6 +1108,10 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
 		return OK;
 		return OK;
 	} else if (token.type == TK_STRING) {
 	} else if (token.type == TK_STRING) {
 
 
+		value = token.value;
+		return OK;
+	} else if (token.type == TK_STRING_NAME) {
+
 		value = token.value;
 		value = token.value;
 		return OK;
 		return OK;
 	} else if (token.type == TK_COLOR) {
 	} else if (token.type == TK_COLOR) {