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); } };