mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +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
|
@ -1517,6 +1517,8 @@ void GDScriptLanguage::init() {
|
|||
}
|
||||
|
||||
_add_global(StaticCString::create("PI"),Math_PI);
|
||||
_add_global(StaticCString::create("INF"),Math_INF);
|
||||
_add_global(StaticCString::create("NAN"),Math_NAN);
|
||||
|
||||
//populate native classes
|
||||
|
||||
|
@ -1909,6 +1911,8 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
|||
"bool",
|
||||
"null",
|
||||
"PI",
|
||||
"INF",
|
||||
"NAN",
|
||||
"self",
|
||||
"true",
|
||||
// functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue