Fix: MaterialX export of less than math node slightly off

Pull Request: https://projects.blender.org/blender/blender/pulls/117763
This commit is contained in:
Pablo Delgado Krämer
2024-02-05 11:39:51 +01:00
committed by Brecht Van Lommel
parent 77ef7d102b
commit a669fd870e

View File

@@ -689,9 +689,9 @@ NodeItem NodeItem::if_else(CompareOp op,
{
switch (op) {
case CompareOp::Less:
return other.if_else(CompareOp::Greater, *this, else_val, if_val);
return if_else(CompareOp::GreaterEq, other, else_val, if_val);
case CompareOp::LessEq:
return other.if_else(CompareOp::GreaterEq, *this, else_val, if_val);
return if_else(CompareOp::Greater, other, else_val, if_val);
case CompareOp::NotEq:
return if_else(CompareOp::Eq, other, else_val, if_val);
default: