summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-01-06 15:14:39 +0100
committerJuan Linietsky <reduzio@gmail.com>2023-01-06 17:17:43 +0100
commit576ae694e088de3e8ef9c7cae76113d03443833b (patch)
tree9804f895132edc639081d2a7a9dbf0150cff73db /core/variant
parentb14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff)
Unbind Variant methods that change immutable types.
Fixes #62706. Code is commented instead of removed to clarify why they should not be re-added.
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_call.cpp4
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 */