MathPOPs 'A if C else B' bugs with NANs

In the current experimental, if you have a nan valued attribute (A) and use ‘A if C else B’ on mathCombine POP, the expression seems to be ignored.

Demo: math_combine_if_else_issue.tox (902 Bytes)

Hello @josefpelz

Thank you for reporting the issue. We were previously using the GLSL mix() function in the shaders to emulate the ‘A if C else B’ operation and it didn’t play well with NaN values. It should be fixed in the next build we release.

1 Like