diff options
author | Goutte <antoine.goutenoir@gmail.com> | 2017-11-04 10:34:27 +0100 |
---|---|---|
committer | Goutte <antoine.goutenoir@gmail.com> | 2017-11-12 13:32:35 +0100 |
commit | 91ca725f9b5a4a77ca70024e3bb73b7c7821a530 (patch) | |
tree | 25e9405df87017425863586ae8ab3f6c756577c5 /modules/gdscript/gd_editor.cpp | |
parent | c1855dcff14a118828de16e850b0698dc76b25e9 (diff) | |
download | redot-engine-91ca725f9b5a4a77ca70024e3bb73b7c7821a530.tar.gz |
Add support for the TAU constant. Fixes #12094.
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
-rw-r--r-- | modules/gdscript/gd_editor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index de8e35c406..863a06315d 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -337,6 +337,11 @@ void GDScriptLanguage::get_public_constants(List<Pair<String, Variant> > *p_cons pi.second = Math_PI; p_constants->push_back(pi); + Pair<String, Variant> tau; + tau.first = "TAU"; + tau.second = Math_TAU; + p_constants->push_back(tau); + Pair<String, Variant> infinity; infinity.first = "INF"; infinity.second = Math_INF; |