Update camera position when updating camera limit

This commit is contained in:
Marcel Admiraal 2022-07-16 16:03:54 +01:00
parent 96c75f1d10
commit 4c23fe602b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {