From 1dfd94a8d3caa336d99138fc23c4fb4cda764ff4 Mon Sep 17 00:00:00 2001 From: Iliya Katueshenock Date: Fri, 16 Feb 2024 20:01:06 +0100 Subject: [PATCH] Cleanup: EEVEE: Fix compile warning Pull Request: https://projects.blender.org/blender/blender/pulls/118322 --- source/blender/draw/engines/eevee_next/eevee_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/draw/engines/eevee_next/eevee_view.cc b/source/blender/draw/engines/eevee_next/eevee_view.cc index 3dbb1f0177b..c1a7f8558b6 100644 --- a/source/blender/draw/engines/eevee_next/eevee_view.cc +++ b/source/blender/draw/engines/eevee_next/eevee_view.cc @@ -279,7 +279,7 @@ void CaptureView::render_probes() while (const auto update_info = inst_.sphere_probes.probe_update_info_pop()) { GPU_debug_group_begin("Probe.Capture"); - if (inst_.pipelines.data.is_probe_reflection != true) { + if (!inst_.pipelines.data.is_probe_reflection) { inst_.pipelines.data.is_probe_reflection = true; inst_.uniform_data.push_update(); } @@ -327,7 +327,7 @@ void CaptureView::render_probes() inst_.sphere_probes.remap_to_octahedral_projection(update_info->atlas_coord); } - if (inst_.pipelines.data.is_probe_reflection != false) { + if (inst_.pipelines.data.is_probe_reflection) { inst_.pipelines.data.is_probe_reflection = false; inst_.uniform_data.push_update(); }