autodesk-forks / MaterialX

MaterialX C++ and Python libraries
http://www.materialx.org/
Apache License 2.0
107 stars 23 forks source link

Code generation for unit transformations broken for Arnold generator #1167

Closed bernardkwok closed 3 years ago

bernardkwok commented 3 years ago

This appears to be a similar problem to the one found for colorspace. When trying to find an implementation to map from one space to another it cannot be found since the targets differ (osl, vs arnold). The fix is to look for implementations for any parent target definition -- so would find osl.

This affects Arnold core ticket: https://core.solidangle.com/trac/arnold/ticket/10499 which needs to set up a unit system properly and take this fix.