1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Add support for the TAU constant. Fixes #12094.

This commit is contained in:
Goutte
2017-11-04 10:34:27 +01:00
parent c1855dcff1
commit 91ca725f9b
11 changed files with 34 additions and 9 deletions

View File

@@ -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;