Skip to content

Commit

Permalink
Update camera position when updating camera limit
Browse files Browse the repository at this point in the history
  • Loading branch information
madmiraal committed Jul 17, 2022
1 parent 96c75f1 commit 4c23fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/2d/camera_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ void Camera2D::clear_current() {
void Camera2D::set_limit(Side p_side, int p_limit) {
ERR_FAIL_INDEX((int)p_side, 4);
limit[p_side] = p_limit;
update();
_update_scroll();
}

int Camera2D::get_limit(Side p_side) const {
Expand Down

0 comments on commit 4c23fe6

Please sign in to comment.