mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +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
|
|
@ -1324,6 +1324,7 @@ void GDScriptLanguage::init() {
|
|||
}
|
||||
|
||||
_add_global(StaticCString::create("PI"), Math_PI);
|
||||
_add_global(StaticCString::create("TAU"), Math_TAU);
|
||||
_add_global(StaticCString::create("INF"), Math_INF);
|
||||
_add_global(StaticCString::create("NAN"), Math_NAN);
|
||||
|
||||
|
|
@ -1700,6 +1701,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
|||
"bool",
|
||||
"null",
|
||||
"PI",
|
||||
"TAU",
|
||||
"INF",
|
||||
"NAN",
|
||||
"self",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue