You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fixed argument names being swapped for atan2
The arguments of atan2() should be y,x instead of x,y This was just wrong since the internal atan2 already had y,x as parameters, so if you followed the autocomplete the result would just be wrong.
This commit is contained in:
@@ -260,7 +260,12 @@ PropertyInfo VisualScriptBuiltinFunc::get_input_value_port_info(int p_idx) const
|
||||
case MATH_SQRT: {
|
||||
return PropertyInfo(Variant::REAL, "s");
|
||||
} break;
|
||||
case MATH_ATAN2:
|
||||
case MATH_ATAN2: {
|
||||
if (p_idx == 0)
|
||||
return PropertyInfo(Variant::REAL, "y");
|
||||
else
|
||||
return PropertyInfo(Variant::REAL, "x");
|
||||
} break;
|
||||
case MATH_FMOD:
|
||||
case MATH_FPOSMOD: {
|
||||
if (p_idx == 0)
|
||||
|
||||
Reference in New Issue
Block a user