mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add support for the TAU constant. Fixes #12094.
This commit is contained in:
parent
c1855dcff1
commit
91ca725f9b
11 changed files with 34 additions and 9 deletions
|
|
@ -564,6 +564,9 @@ Error VisualScriptExpression::_get_token(Token &r_token) {
|
|||
} else if (id == "PI") {
|
||||
r_token.type = TK_CONSTANT;
|
||||
r_token.value = Math_PI;
|
||||
} else if (id == "TAU") {
|
||||
r_token.type = TK_CONSTANT;
|
||||
r_token.value = Math_TAU;
|
||||
} else if (id == "INF") {
|
||||
r_token.type = TK_CONSTANT;
|
||||
r_token.value = Math_INF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue