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 86eaded7b4)
This commit is contained in:
Andrii Doroshenko (Xrayez) 2018-11-27 14:10:19 +02:00 committed by Rémi Verschelde
parent c02ef4d7b9
commit bf6186449f
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}