mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 09:53:25 +00:00
GDScript: Fix return value of "lerp" builtin
Fixes #25082, fixes #24709.
This commit is contained in:
parent
ce36351065
commit
d024979e84
3 changed files with 9 additions and 5 deletions
|
@ -1565,7 +1565,8 @@ MethodInfo GDScriptFunctions::get_info(Function p_func) {
|
|||
} break;
|
||||
case MATH_LERP: {
|
||||
MethodInfo mi("lerp", PropertyInfo(Variant::NIL, "from"), PropertyInfo(Variant::NIL, "to"), PropertyInfo(Variant::REAL, "weight"));
|
||||
mi.return_val.type = Variant::REAL;
|
||||
mi.return_val.type = Variant::NIL;
|
||||
mi.return_val.usage |= PROPERTY_USAGE_NIL_IS_VARIANT;
|
||||
return mi;
|
||||
} break;
|
||||
case MATH_INVERSE_LERP: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue