You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Mark class_name line as safe in editor
(cherry picked from commit 1e6a52b215)
This commit is contained in:
committed by
Rémi Verschelde
parent
ebece65936
commit
a07d53b262
@@ -3497,6 +3497,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
||||
} break;
|
||||
case GDScriptTokenizer::TK_PR_CLASS_NAME: {
|
||||
|
||||
_mark_line_as_safe(tokenizer->get_token_line());
|
||||
if (p_class->owner) {
|
||||
_set_error("'class_name' is only valid for the main class namespace.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user