summaryrefslogtreecommitdiff
path: root/scene/2d/back_buffer_copy.cpp
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-07-03 18:06:15 +0200
committerGitHub <noreply@github.com>2018-07-03 18:06:15 +0200
commitb21c1f64cdbbb762e6ede25eed1fbd1dec4b91a6 (patch)
tree25414d464c93a845c9dc1f44c0e05c7b61713b87 /scene/2d/back_buffer_copy.cpp
parent5885e1c6ddfaa90ad71ffab1923abaceeadee18d (diff)
parent4d78e16bc1bf265da32858a38aa75a1233421da4 (diff)
Merge pull request #18634 from groud/fix_control_child_of_node2d
Fixes the bad calculation of margin & anchors when child of Node2D
Diffstat (limited to 'scene/2d/back_buffer_copy.cpp')
-rw-r--r--scene/2d/back_buffer_copy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/2d/back_buffer_copy.cpp b/scene/2d/back_buffer_copy.cpp
index caa1adebdb..e06c30ec6b 100644
--- a/scene/2d/back_buffer_copy.cpp
+++ b/scene/2d/back_buffer_copy.cpp
@@ -59,6 +59,11 @@ bool BackBufferCopy::_edit_use_rect() const {
return true;
}
+Rect2 BackBufferCopy::get_anchorable_rect() const {
+
+ return rect;
+}
+
void BackBufferCopy::set_rect(const Rect2 &p_rect) {
rect = p_rect;