mirror of
https://github.com/godotengine/godot
synced 2024-09-05 18:09:34 +00:00
parent
c8a799d691
commit
38284bc6da
|
@ -716,6 +716,14 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
|
||||||
expr = constant;
|
expr = constant;
|
||||||
bfn = true;
|
bfn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!bfn && GDScriptLanguage::get_singleton()->get_named_globals_map().has(identifier)) {
|
||||||
|
//check from singletons
|
||||||
|
ConstantNode *constant = alloc_node<ConstantNode>();
|
||||||
|
constant->value = GDScriptLanguage::get_singleton()->get_named_globals_map()[identifier];
|
||||||
|
expr = constant;
|
||||||
|
bfn = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bfn) {
|
if (!bfn) {
|
||||||
|
|
Loading…
Reference in a new issue