From bf6186449f4b7e53b9483d40007b8355e5e820c5 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Tue, 27 Nov 2018 14:10:19 +0200 Subject: [PATCH] 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. (cherry picked from commit 86eaded7b4a5124f65fc755548b38c4cba999339) --- scene/2d/parallax_background.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/2d/parallax_background.cpp b/scene/2d/parallax_background.cpp index 027d64b8134..59cb16fe910 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; }