You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Revert "GDScript: Don't allow built-in scripts to use class_name"
This reverts commit 42514bfd80.
There is still an unsolved regression from this commit (#28002)
which needs to be addressed before cherry-picking this one.
This commit is contained in:
@@ -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 <UniqueName>'");
|
||||
|
||||
Reference in New Issue
Block a user