Ver Fonte

Fix viewport not updating with make_current() for Camera2D

Brody Eller há 6 anos atrás
pai
commit
440d62acd1
1 ficheiros alterados com 1 adições e 0 exclusões
  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() {