Browse Source

Merge pull request #24011 from Xrayez/fix-23031

Init `ignore_camera_zoom` property in parallax background constructor
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
62f25142ee
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      scene/2d/parallax_background.cpp

+ 3 - 1
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;
 }