Fix: Cycles volume assert on Windows due to wrong comparator

Introduced in 13ab5067ce.

Pull Request: https://projects.blender.org/blender/blender/pulls/144167
This commit is contained in:
Brecht Van Lommel
2025-08-07 21:23:28 +02:00
committed by Brecht Van Lommel
parent 63cee26814
commit 6dc9cd366a

View File

@@ -299,7 +299,7 @@ class ShaderNodeIDAndBoolComparator {
bool operator()(const std::pair<ShaderNode *, bool> p1,
const std::pair<ShaderNode *, bool> 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);
}
};