Merge pull request #42460 from ThakeeNathees/signal-lines-marked-safe

[3.2] GDScript signal lines marked as safe
This commit is contained in:
Rémi Verschelde 2020-10-01 14:18:22 +02:00 committed by GitHub
commit 8d36b7206c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -4109,6 +4109,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
//arguments
} break;
case GDScriptTokenizer::TK_PR_SIGNAL: {
_mark_line_as_safe(tokenizer->get_token_line());
tokenizer->advance();
if (!tokenizer->is_token_literal()) {