From cab4921477063c18b9658210a231dddb9cc02196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 21 Apr 2019 14:06:06 +0200 Subject: [PATCH] Revert "GDScript: Don't allow built-in scripts to use class_name" This reverts commit 42514bfd8019e39586eeefddd63c4135fc6e7ebd. There is still an unsolved regression from this commit (#28002) which needs to be addressed before cherry-picking this one. --- modules/gdscript/gdscript_parser.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 25a41748cc9..6ed7f097443 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3494,10 +3494,6 @@ void GDScriptParser::_parse_class(ClassNode *p_class) { _set_error("'class_name' is only valid for the main class namespace."); return; } - if (self_path.empty()) { - _set_error("'class_name' not allowed in built-in scripts."); - return; - } if (tokenizer->get_token(1) != GDScriptTokenizer::TK_IDENTIFIER) { _set_error("'class_name' syntax: 'class_name '");