summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-05-29 23:51:24 +0200
committerkobewi <kobewi4e@gmail.com>2022-05-29 23:51:24 +0200
commit7bae94910eea4e8da5a4ac5c12042b1e6d2cfad4 (patch)
tree261d3182d1909faec217416b9adb6ab49e54d981
parent823f1d389ee56f4e6a4d557d494169de918a1419 (diff)
Update VisibleOnScreenNotifier2D when rect changed
-rw-r--r--scene/2d/visible_on_screen_notifier_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/visible_on_screen_notifier_2d.cpp b/scene/2d/visible_on_screen_notifier_2d.cpp
index 33dd737416..1971dc1240 100644
--- a/scene/2d/visible_on_screen_notifier_2d.cpp
+++ b/scene/2d/visible_on_screen_notifier_2d.cpp
@@ -66,6 +66,7 @@ void VisibleOnScreenNotifier2D::set_rect(const Rect2 &p_rect) {
if (is_inside_tree()) {
RS::get_singleton()->canvas_item_set_visibility_notifier(get_canvas_item(), true, rect, callable_mp(this, &VisibleOnScreenNotifier2D::_visibility_enter), callable_mp(this, &VisibleOnScreenNotifier2D::_visibility_exit));
}
+ update();
}
Rect2 VisibleOnScreenNotifier2D::get_rect() const {