prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
808 stars 133 forks source link

Fix simple shader from material display color #693

Closed erjiang closed 1 year ago

erjiang commented 1 year ago

This exception was popping up as I was looking into why I wasn't able to start IPR. It was not the problem stopping IPR but seems like there's a bug anyways. As far back as I have Blender versions on my computer, the diffuse color option in the material's properties is RGBA, but SetColor only takes max 3 values. The alpha should be copied in the shader's presence.

prman-pixar commented 1 year ago

Actually, this looks like a problem with the string_utils call. I'll do a follow up commit.