diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-30 01:55:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 01:55:36 +0200 |
commit | 5dd667905f44495868bccbc0514eb582abbeff28 (patch) | |
tree | 261d3182d1909faec217416b9adb6ab49e54d981 | |
parent | 823f1d389ee56f4e6a4d557d494169de918a1419 (diff) | |
parent | 7bae94910eea4e8da5a4ac5c12042b1e6d2cfad4 (diff) |
Merge pull request #61532 from KoBeWi/random_bugs_be_like
-rw-r--r-- | scene/2d/visible_on_screen_notifier_2d.cpp | 1 |
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 { |