prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
803 stars 134 forks source link

Fix simple shader from material display color #693

Closed erjiang closed 11 months ago

erjiang commented 11 months 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 11 months ago

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