diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-09-06 15:39:01 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-09-17 10:30:30 -0500 |
commit | bf0213470cbfa63bbcce9f614f2cc2ecaae5fe54 (patch) | |
tree | de434807afe988d3c96019797c86f3e82920fa1f /core/variant | |
parent | b8fdeb64678444103a9b6c96ef3ae2c65ad02b2f (diff) |
Replace Vector3.to_diagonal_matrix with Basis.from_scale
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_call.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index 39207df9e7..49a0b455df 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1568,7 +1568,6 @@ static void _register_variant_builtin_methods() { bind_method(Vector3, dot, sarray("with"), varray()); bind_method(Vector3, cross, sarray("with"), varray()); bind_method(Vector3, outer, sarray("with"), varray()); - bind_method(Vector3, to_diagonal_matrix, sarray(), varray()); bind_method(Vector3, abs, sarray(), varray()); bind_method(Vector3, floor, sarray(), varray()); bind_method(Vector3, ceil, sarray(), varray()); @@ -1732,6 +1731,7 @@ static void _register_variant_builtin_methods() { bind_method(Basis, is_equal_approx, sarray("b"), varray()); bind_method(Basis, get_rotation_quaternion, sarray(), varray()); bind_static_method(Basis, looking_at, sarray("target", "up"), varray(Vector3(0, 1, 0))); + bind_static_method(Basis, from_scale, sarray("scale"), varray()); /* AABB */ |