mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 07:02:56 +00:00
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;
|
||||
} break;
|
||||
case MATH_ISNAN: {
|
||||
MethodInfo mi("isnan",PropertyInfo(Variant::REAL,"s"));
|
||||
MethodInfo mi("is_nan",PropertyInfo(Variant::REAL,"s"));
|
||||
mi.return_val.type=Variant::REAL;
|
||||
return mi;
|
||||
} break;
|
||||
case MATH_ISINF: {
|
||||
MethodInfo mi("isinf",PropertyInfo(Variant::REAL,"s"));
|
||||
MethodInfo mi("is_inf",PropertyInfo(Variant::REAL,"s"));
|
||||
mi.return_val.type=Variant::REAL;
|
||||
return mi;
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user