From 1e6a52b215c5cbc186deba76bcf7972f694713b2 Mon Sep 17 00:00:00 2001 From: shaderbeast Date: Fri, 2 Aug 2019 20:07:54 +0200 Subject: [PATCH] Mark class_name line as safe in editor --- modules/gdscript/gdscript_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 80da606967e..ffb2e8f8e7b 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3472,6 +3472,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;