Merge pull request #7946 from RandomShaper/fix-vis-notifier-2d-2.1
Fix VisibilityNotifier2D viewport offset issue (2.1)
This commit is contained in:
commit
8d6445b8f3
@ -254,7 +254,8 @@ void Viewport::update_worlds() {
|
||||
if (!is_inside_tree())
|
||||
return;
|
||||
|
||||
Rect2 xformed_rect = (global_canvas_transform * canvas_transform).affine_inverse().xform(get_visible_rect());
|
||||
Rect2 abstracted_rect = Rect2(Vector2(), get_visible_rect().size);
|
||||
Rect2 xformed_rect = (global_canvas_transform * canvas_transform).affine_inverse().xform(abstracted_rect);
|
||||
find_world_2d()->_update_viewport(this, xformed_rect);
|
||||
find_world_2d()->_update();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user