1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Merge pull request #58567 from madmiraal/fix-26470

Remove ParallaxLayer's invalid dependence on screen_offset
This commit is contained in:
Rémi Verschelde
2022-09-18 00:42:22 +02:00
3 changed files with 7 additions and 11 deletions

View File

@@ -102,9 +102,9 @@ void ParallaxBackground::_update_scroll() {
}
if (ignore_camera_zoom) {
l->set_base_offset_and_scale((ofs + screen_offset * (scale - 1)) / scale, 1.0, screen_offset);
l->set_base_offset_and_scale((ofs + screen_offset * (scale - 1)) / scale, 1.0);
} else {
l->set_base_offset_and_scale(ofs, scale, screen_offset);
l->set_base_offset_and_scale(ofs, scale);
}
}
}