mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Updated the variable in the lerp function to be weight instead of percent.
This commit is contained in:
parent
071b2ea4f2
commit
bfad392387
@ -261,7 +261,7 @@
|
||||
</argument>
|
||||
<argument index="1" name="to" type="float">
|
||||
</argument>
|
||||
<argument index="2" name="percent" type="float">
|
||||
<argument index="2" name="weight" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Linear interpolates between two values by a normalized value.
|
||||
|
@ -1101,7 +1101,7 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
||||
return mi;
|
||||
} break;
|
||||
case MATH_LERP: {
|
||||
MethodInfo mi("lerp",PropertyInfo(Variant::REAL,"a"),PropertyInfo(Variant::REAL,"b"), PropertyInfo(Variant::REAL,"c"));
|
||||
MethodInfo mi("lerp",PropertyInfo(Variant::REAL,"from"),PropertyInfo(Variant::REAL,"to"), PropertyInfo(Variant::REAL,"weight"));
|
||||
mi.return_val.type=Variant::REAL;
|
||||
return mi;
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user