mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
Inf and NaN support added to GDScript.
This commit is contained in:
parent
0f8c6dd382
commit
5e938f0001
11 changed files with 53 additions and 4 deletions
|
@ -558,6 +558,12 @@ Error VisualScriptExpression::_get_token(Token& r_token) {
|
|||
} else if (id=="PI") {
|
||||
r_token.type=TK_CONSTANT;
|
||||
r_token.value=Math_PI;
|
||||
} else if (id == "INF") {
|
||||
r_token.type = TK_CONSTANT;
|
||||
r_token.value = Math_INF;
|
||||
} else if (id == "NAN") {
|
||||
r_token.type = TK_CONSTANT;
|
||||
r_token.value = Math_NAN;
|
||||
} else if (id=="not") {
|
||||
r_token.type=TK_OP_NOT;
|
||||
} else if (id=="or") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue