From 6dc9cd366a292eba0058a0f52fe7bec2fba3a2f2 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 7 Aug 2025 21:23:28 +0200 Subject: [PATCH] Fix: Cycles volume assert on Windows due to wrong comparator Introduced in 13ab5067ceab7. Pull Request: https://projects.blender.org/blender/blender/pulls/144167 --- intern/cycles/scene/shader_graph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/scene/shader_graph.h b/intern/cycles/scene/shader_graph.h index ac466fa5bc1..a428dcb2318 100644 --- a/intern/cycles/scene/shader_graph.h +++ b/intern/cycles/scene/shader_graph.h @@ -299,7 +299,7 @@ class ShaderNodeIDAndBoolComparator { bool operator()(const std::pair p1, const std::pair p2) const { - return p1.first->id < p2.first->id || p1.second < p2.second; + return p1.first->id < p2.first->id || (p1.first->id == p2.first->id && p1.second < p2.second); } };