Update camera position when updating camera limit
This commit is contained in:
parent
96c75f1d10
commit
4c23fe602b
|
@ -439,7 +439,7 @@ void Camera2D::clear_current() {
|
||||||
void Camera2D::set_limit(Side p_side, int p_limit) {
|
void Camera2D::set_limit(Side p_side, int p_limit) {
|
||||||
ERR_FAIL_INDEX((int)p_side, 4);
|
ERR_FAIL_INDEX((int)p_side, 4);
|
||||||
limit[p_side] = p_limit;
|
limit[p_side] = p_limit;
|
||||||
update();
|
_update_scroll();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Camera2D::get_limit(Side p_side) const {
|
int Camera2D::get_limit(Side p_side) const {
|
||||||
|
|
Loading…
Reference in New Issue