summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorXpertice <henryjones@programmer.net>2022-10-21 14:59:27 -0400
committerHenryClones <30604707+HenryClones@users.noreply.github.com>2022-11-22 22:37:22 -0500
commit3e36cc7c7342213628a462c5d0ee2f330c283b4c (patch)
treec4a06f906e29644661813a05c46f8549078996a9 /doc/classes
parente73ff0e961da2b57f4ff63185c0929cc222c7372 (diff)
Add case for Variant::INT in lerp variant switch
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/@GlobalScope.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml
index a81c601910..8e77a1e170 100644
--- a/doc/classes/@GlobalScope.xml
+++ b/doc/classes/@GlobalScope.xml
@@ -527,7 +527,7 @@
<param index="2" name="weight" type="Variant" />
<description>
Linearly interpolates between two values by the factor defined in [param weight]. To perform interpolation, [param weight] should be between [code]0.0[/code] and [code]1.0[/code] (inclusive). However, values outside this range are allowed and can be used to perform [i]extrapolation[/i]. If this is not desired, use [method clamp] on the result of this function.
- Both [param from] and [param to] must be the same type. Supported types: [float], [Vector2], [Vector3], [Vector4], [Color], [Quaternion], [Basis].
+ Both [param from] and [param to] must be the same type. Supported types: [int], [float], [Vector2], [Vector3], [Vector4], [Color], [Quaternion], [Basis].
[codeblock]
lerp(0, 4, 0.75) # Returns 3.0
[/codeblock]