GDScript: Fix method info for is_nan and is_inf
As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
This commit is contained in:
parent
02f3e7e766
commit
b58e261d41
|
@ -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