Browse Source

Merge pull request #89889 from BoThompson/compute_image_metrics-fix

Remove a redundant `MAX` comparison within a loop in `compute_image_metrics`.
Rémi Verschelde 1 năm trước cách đây
mục cha
commit
3fdc169751
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/io/image.cpp

+ 1 - 1
core/io/image.cpp

@@ -4114,7 +4114,7 @@ Dictionary Image::compute_image_metrics(const Ref<Image> p_compared_image, bool
 			continue;
 		}
 
-		image_metric_max = MAX(image_metric_max, i);
+		image_metric_max = i;
 
 		double x = i * hist[i];