RfB allows connecting LamaLayer and LamaSurface in an incorrect way that exports a shader that crashes prman. The docs are not super clear on whether or not there's a distinction between Lama materials and whatever the output of a LamaSurface node is. But connecting a LamaSurface and LamaLayer node in the wrong order is evidently not supported, although connecting e.g. a LamaDiffuse directly to the Bxdf input without a LamaSurface seems to work as expected.
To reproduce:
Create a new material with a Blender Principled BSDF
Convert the Blender Principled BSDF to a RenderMan shader, which creates a tree of Lama mixes.
Check that this material renders OK.
Connect the output of the LamaSurface to the Material Base of a LamaLayer shader, and connect a new LamaDiffuse node to the Material Top.
Connect the output of the LamaLayer node to the Bxdf input of the RenderMan Material node.
Try rendering.
Expected:
Error message saying that LamaSurface should not be input for LamaLayer.
RfB allows connecting LamaLayer and LamaSurface in an incorrect way that exports a shader that crashes prman. The docs are not super clear on whether or not there's a distinction between Lama materials and whatever the output of a LamaSurface node is. But connecting a LamaSurface and LamaLayer node in the wrong order is evidently not supported, although connecting e.g. a LamaDiffuse directly to the Bxdf input without a LamaSurface seems to work as expected.
To reproduce:
Expected:
Error message saying that LamaSurface should not be input for LamaLayer.
Actual:
segfault in LamaSurface.so
lama-crash.blend.zip lama-crash.rib.zip