Browse Source

Notify child controls when BackBufferCopy's rect changed

Haoyu Qiu 2 years ago
parent
commit
602a0d2fbc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/2d/back_buffer_copy.cpp

+ 1 - 0
scene/2d/back_buffer_copy.cpp

@@ -62,6 +62,7 @@ Rect2 BackBufferCopy::get_anchorable_rect() const {
 void BackBufferCopy::set_rect(const Rect2 &p_rect) {
 void BackBufferCopy::set_rect(const Rect2 &p_rect) {
 	rect = p_rect;
 	rect = p_rect;
 	_update_copy_mode();
 	_update_copy_mode();
+	item_rect_changed();
 }
 }
 
 
 Rect2 BackBufferCopy::get_rect() const {
 Rect2 BackBufferCopy::get_rect() const {