Merge pull request #61532 from KoBeWi/random_bugs_be_like
This commit is contained in:
commit
5dd667905f
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ void VisibleOnScreenNotifier2D::set_rect(const Rect2 &p_rect) {
|
||||||
if (is_inside_tree()) {
|
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));
|
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 {
|
Rect2 VisibleOnScreenNotifier2D::get_rect() const {
|
||||||
|
|
Loading…
Reference in a new issue