summaryrefslogtreecommitdiff
path: root/scene/2d/back_buffer_copy.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-13 10:21:44 -0300
committerGitHub <noreply@github.com>2018-04-13 10:21:44 -0300
commit1d15c5d726600047805ab10d53ff2a7efdc41d8e (patch)
treeb2e2cbe054e4d12c5ffa1172d504a0188e09274f /scene/2d/back_buffer_copy.cpp
parent3a5b25d5b489ad88c2861c9c37b56469580fbf03 (diff)
parenta724f34ef30bdf362b9059634e4ef21e21101ddd (diff)
Merge pull request #17502 from groud/2Deditor_rect
Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
Diffstat (limited to 'scene/2d/back_buffer_copy.cpp')
-rw-r--r--scene/2d/back_buffer_copy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/back_buffer_copy.cpp b/scene/2d/back_buffer_copy.cpp
index 446b367be0..caa1adebdb 100644
--- a/scene/2d/back_buffer_copy.cpp
+++ b/scene/2d/back_buffer_copy.cpp
@@ -55,6 +55,10 @@ Rect2 BackBufferCopy::_edit_get_rect() const {
return rect;
}
+bool BackBufferCopy::_edit_use_rect() const {
+ return true;
+}
+
void BackBufferCopy::set_rect(const Rect2 &p_rect) {
rect = p_rect;