Merge pull request #24011 from Xrayez/fix-23031
Init `ignore_camera_zoom` property in parallax background constructor
This commit is contained in:
commit
62f25142ee
1 changed files with 3 additions and 1 deletions
|
@ -206,7 +206,9 @@ void ParallaxBackground::_bind_methods() {
|
||||||
|
|
||||||
ParallaxBackground::ParallaxBackground() {
|
ParallaxBackground::ParallaxBackground() {
|
||||||
|
|
||||||
base_scale = Vector2(1, 1);
|
|
||||||
scale = 1.0;
|
scale = 1.0;
|
||||||
set_layer(-1); //behind all by default
|
set_layer(-1); //behind all by default
|
||||||
|
|
||||||
|
base_scale = Vector2(1, 1);
|
||||||
|
ignore_camera_zoom = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue