appleseedhq / appleseed-max

appleseed plugin for Autodesk® 3ds Max®
https://appleseedhq.net/
MIT License
33 stars 16 forks source link

Fix OSL parameter bugs #344

Closed usakhelo closed 4 years ago

usakhelo commented 4 years ago

Hi, This PR fixes two bugs in OSL plugin:

  1. Ouput parameter were skipped due to their usual metadata widget="null". Bug was introduced with recent changes
  2. Shader parameters that were marked as connectible and didn't have actual connection (texture in our case) didn't get their default values properly. Now it's fixed by skipping that kind of parameters altogether in create_osl_shader function.

Thanks, Sergo.