GDScript: Fix method info for is_nan and is_inf
As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
(cherry picked from commit b58e261d41
)
This commit is contained in:
parent
c6e2c0f01d
commit
1d85dcb1fa
|
@ -1226,12 +1226,12 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
||||||
return mi;
|
return mi;
|
||||||
} break;
|
} break;
|
||||||
case MATH_ISNAN: {
|
case MATH_ISNAN: {
|
||||||
MethodInfo mi("isnan",PropertyInfo(Variant::REAL,"s"));
|
MethodInfo mi("is_nan",PropertyInfo(Variant::REAL,"s"));
|
||||||
mi.return_val.type=Variant::REAL;
|
mi.return_val.type=Variant::REAL;
|
||||||
return mi;
|
return mi;
|
||||||
} break;
|
} break;
|
||||||
case MATH_ISINF: {
|
case MATH_ISINF: {
|
||||||
MethodInfo mi("isinf",PropertyInfo(Variant::REAL,"s"));
|
MethodInfo mi("is_inf",PropertyInfo(Variant::REAL,"s"));
|
||||||
mi.return_val.type=Variant::REAL;
|
mi.return_val.type=Variant::REAL;
|
||||||
return mi;
|
return mi;
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in New Issue