summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-11-28 10:25:51 +0100
committerGitHub <noreply@github.com>2018-11-28 10:25:51 +0100
commit62f25142ee41cf009a3e880357676f116b581b08 (patch)
treefef3cb776df880fb70602c508121f9c90e89345c
parent405d055768961064ca50e24df2769c937263e9ef (diff)
parent86eaded7b4a5124f65fc755548b38c4cba999339 (diff)
Merge pull request #24011 from Xrayez/fix-23031
Init `ignore_camera_zoom` property in parallax background constructor
-rw-r--r--scene/2d/parallax_background.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/2d/parallax_background.cpp b/scene/2d/parallax_background.cpp
index 027d64b813..59cb16fe91 100644
--- a/scene/2d/parallax_background.cpp
+++ b/scene/2d/parallax_background.cpp
@@ -206,7 +206,9 @@ void ParallaxBackground::_bind_methods() {
ParallaxBackground::ParallaxBackground() {
- base_scale = Vector2(1, 1);
scale = 1.0;
set_layer(-1); //behind all by default
+
+ base_scale = Vector2(1, 1);
+ ignore_camera_zoom = false;
}