2
0
Эх сурвалжийг харах

When Camera2D enters tree, ensure first update is not lost

Marcel Admiraal 3 жил өмнө
parent
commit
3f83c3a0ac

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

@@ -247,8 +247,8 @@ void Camera2D::_notification(int p_what) {
 			add_to_group(canvas_group_name);
 
 			_update_process_callback();
-			_update_scroll();
 			first = true;
+			_update_scroll();
 		} break;
 
 		case NOTIFICATION_EXIT_TREE: {