summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2018-11-27 14:10:19 +0200
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2018-11-27 14:10:19 +0200
commit86eaded7b4a5124f65fc755548b38c4cba999339 (patch)
treeda8f61c952870193873963f466fc293c2521dcf3 /scene
parentc23710adde23a0e415097dee7d8e6f9ba76a0970 (diff)
Init `ignore_camera_zoom` property in parallax background constructor
The default value for `ignore_camera_zoom` property was initialized by garbage value, leading to camera's zoom to be ignored even if unset in editor most of the time.
Diffstat (limited to 'scene')
-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;
}