You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user