Merge pull request #22165 from DualMatrix/atan2_plain_wrong
Fixed argument names having wrong order for atan2
This commit is contained in:
commit
4075c80ea9
2 changed files with 7 additions and 2 deletions
|
@ -1458,7 +1458,7 @@ MethodInfo GDScriptFunctions::get_info(Function p_func) {
|
||||||
return mi;
|
return mi;
|
||||||
} break;
|
} break;
|
||||||
case MATH_ATAN2: {
|
case MATH_ATAN2: {
|
||||||
MethodInfo mi("atan2", PropertyInfo(Variant::REAL, "x"), PropertyInfo(Variant::REAL, "y"));
|
MethodInfo mi("atan2", PropertyInfo(Variant::REAL, "y"), PropertyInfo(Variant::REAL, "x"));
|
||||||
mi.return_val.type = Variant::REAL;
|
mi.return_val.type = Variant::REAL;
|
||||||
return mi;
|
return mi;
|
||||||
} break;
|
} break;
|
||||||
|
|
|
@ -260,7 +260,12 @@ PropertyInfo VisualScriptBuiltinFunc::get_input_value_port_info(int p_idx) const
|
||||||
case MATH_SQRT: {
|
case MATH_SQRT: {
|
||||||
return PropertyInfo(Variant::REAL, "s");
|
return PropertyInfo(Variant::REAL, "s");
|
||||||
} break;
|
} 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_FMOD:
|
||||||
case MATH_FPOSMOD: {
|
case MATH_FPOSMOD: {
|
||||||
if (p_idx == 0)
|
if (p_idx == 0)
|
||||||
|
|
Loading…
Reference in a new issue