summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-02-03 18:10:11 -0200
committerGitHub <noreply@github.com>2018-02-03 18:10:11 -0200
commitba6a0a3e3d588b3d9bf2a9a1e592dc79121b3158 (patch)
tree3c935248527250709ee4fa3ebbe0bbe38b8b0896
parent047cb97ff7e04db17c0ac8af5af11ef46263ae29 (diff)
parentc16f61190c261a1daec6ad2f95ca982b0f20b3fd (diff)
Merge pull request #16362 from clktmr/master
Fix broken variant call of Vector3.snapped
-rw-r--r--core/variant_call.cpp2
-rw-r--r--doc/classes/Vector3.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 2ca435611b..5607751a27 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -1539,7 +1539,7 @@ void register_variant_methods() {
ADDFUNC0R(VECTOR3, BOOL, Vector3, is_normalized, varray());
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, normalized, varray());
ADDFUNC0R(VECTOR3, VECTOR3, Vector3, inverse, varray());
- ADDFUNC1R(VECTOR3, VECTOR3, Vector3, snapped, REAL, "by", varray());
+ ADDFUNC1R(VECTOR3, VECTOR3, Vector3, snapped, VECTOR3, "by", varray());
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, rotated, VECTOR3, "axis", REAL, "phi", varray());
ADDFUNC2R(VECTOR3, VECTOR3, Vector3, linear_interpolate, VECTOR3, "b", REAL, "t", varray());
ADDFUNC4R(VECTOR3, VECTOR3, Vector3, cubic_interpolate, VECTOR3, "b", VECTOR3, "pre_a", VECTOR3, "post_b", REAL, "t", varray());
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml
index 050285af02..0dc808329f 100644
--- a/doc/classes/Vector3.xml
+++ b/doc/classes/Vector3.xml
@@ -216,7 +216,7 @@
<method name="snapped">
<return type="Vector3">
</return>
- <argument index="0" name="by" type="float">
+ <argument index="0" name="by" type="Vector3">
</argument>
<description>
Returns a copy of the vector, snapped to the lowest neared multiple.