diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-06 22:56:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 22:56:20 +0100 |
commit | a12b326fab3e551ddf5eb7937f8ce0cd25bd8de5 (patch) | |
tree | cd94cc4790f0b1c741df0bd15c43bda63e4be7fa /core/variant | |
parent | 60515f62bb7825153c84c9728ad58fb6b6eb694e (diff) | |
parent | 576ae694e088de3e8ef9c7cae76113d03443833b (diff) |
Merge pull request #70995 from reduz/do-not-bind-variant-immutable
Unbind Variant methods that change immutable types.
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_call.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index 088e24ba6e..bc00bfca0f 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -2059,9 +2059,7 @@ static void _register_variant_builtin_methods() { bind_method(Transform2D, interpolate_with, sarray("xform", "weight"), varray()); bind_method(Transform2D, is_equal_approx, sarray("xform"), varray()); bind_method(Transform2D, is_finite, sarray(), varray()); - bind_method(Transform2D, set_rotation, sarray("rotation"), varray()); - bind_method(Transform2D, set_scale, sarray("scale"), varray()); - bind_method(Transform2D, set_skew, sarray("skew"), varray()); + // Do not bind functions like set_rotation, set_scale, set_skew, etc because this type is immutable and can't be modified. bind_method(Transform2D, looking_at, sarray("target"), varray(Vector2())); /* Basis */ |