소스 검색

Ensure Camera2D scroll is updated on transform like 3.x

Danni 1 년 전
부모
커밋
734166f796
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/2d/camera_2d.cpp

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

@@ -229,7 +229,7 @@ void Camera2D::_notification(int p_what) {
 		} break;
 
 		case NOTIFICATION_TRANSFORM_CHANGED: {
-			if (!is_processing_internal() && !is_physics_processing_internal()) {
+			if (!position_smoothing_enabled || _is_editing_in_editor()) {
 				_update_scroll();
 			}
 		} break;