aboutsummaryrefslogtreecommitdiff
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson2017-11-28 00:41:29 +0700
committerPoommetee Ketson2017-11-28 00:41:29 +0700
commit5c9be411ebbc57e6b9cc82ace776dd13449115c9 (patch)
tree4ddb757b4808205ed6693b919edf6c403d811c8b /core/variant_call.cpp
parentd992eb1b25e3612293d6c72cd462a99cd5a0e4a3 (diff)
downloadgodot-5c9be411ebbc57e6b9cc82ace776dd13449115c9.tar.gz
godot-5c9be411ebbc57e6b9cc82ace776dd13449115c9.tar.zst
godot-5c9be411ebbc57e6b9cc82ace776dd13449115c9.zip
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 10f5ca0ce..f3cc988f8 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -360,6 +360,7 @@ struct _VariantCall {
VCALL_LOCALMEM2R(Rect2, grow_margin);
VCALL_LOCALMEM4R(Rect2, grow_individual);
VCALL_LOCALMEM1R(Rect2, expand);
+ VCALL_LOCALMEM0R(Rect2, abs);
VCALL_LOCALMEM0R(Vector3, min_axis);
VCALL_LOCALMEM0R(Vector3, max_axis);
@@ -1526,6 +1527,7 @@ void register_variant_methods() {
ADDFUNC2R(RECT2, RECT2, Rect2, grow_margin, INT, "margin", REAL, "by", varray());
ADDFUNC4R(RECT2, RECT2, Rect2, grow_individual, REAL, "left", REAL, "top", REAL, "right", REAL, " bottom", varray());
ADDFUNC1R(RECT2, RECT2, Rect2, expand, VECTOR2, "to", varray());
+ ADDFUNC0R(RECT2, RECT2, Rect2, abs, varray());
ADDFUNC0R(VECTOR3, INT, Vector3, min_axis, varray());
ADDFUNC0R(VECTOR3, INT, Vector3, max_axis, varray());