diff options
| author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-07-03 18:06:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-03 18:06:15 +0200 |
| commit | b21c1f64cdbbb762e6ede25eed1fbd1dec4b91a6 (patch) | |
| tree | 25414d464c93a845c9dc1f44c0e05c7b61713b87 /scene/2d/back_buffer_copy.cpp | |
| parent | 5885e1c6ddfaa90ad71ffab1923abaceeadee18d (diff) | |
| parent | 4d78e16bc1bf265da32858a38aa75a1233421da4 (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.cpp | 5 |
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; |