mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user