Explorar o código

Merge pull request #24689 from BrodyEller/master

Fix viewport not updating with make_current() for Camera2D
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
2c118d754d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/2d/camera_2d.cpp

+ 1 - 0
scene/2d/camera_2d.cpp

@@ -410,6 +410,7 @@ void Camera2D::make_current() {
 	} else {
 		get_tree()->call_group_flags(SceneTree::GROUP_CALL_REALTIME, group_name, "_make_current", this);
 	}
+	_update_scroll();
 }
 
 void Camera2D::clear_current() {