Update camera position when updating camera limit

This commit is contained in:
Marcel Admiraal 2022-07-16 15:50:27 +01:00
parent fb4e1d2d02
commit 162cb5748a

View file

@ -437,7 +437,7 @@ void Camera2D::clear_current() {
void Camera2D::set_limit(Margin p_margin, int p_limit) {
ERR_FAIL_INDEX((int)p_margin, 4);
limit[p_margin] = p_limit;
update();
_update_scroll();
}
int Camera2D::get_limit(Margin p_margin) const {