mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-func
GDScript: Check `get_node()` shorthand in static functions
This commit is contained in:
commit
4f00f925b3
5 changed files with 26 additions and 10 deletions
|
|
@ -3035,10 +3035,8 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_get_node(ExpressionNode *p
|
|||
if (previous.type == GDScriptTokenizer::Token::DOLLAR) {
|
||||
// Detect initial slash, which will be handled in the loop if it matches.
|
||||
match(GDScriptTokenizer::Token::SLASH);
|
||||
#ifdef DEBUG_ENABLED
|
||||
} else {
|
||||
get_node->use_dollar = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
int context_argument = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue