Fix so that custom nodes shows texture in viewport.
stig-atle opened this issue · comments
I stumbled upon the solution on how to enable textures in the viewport with the custom nodes while working on the pbrt-v4 support, each custom material node class simply has to have 'show_texture = True' in the class definition (for example just below 'bl_icon = 'INFO'').
You can then show the texture from the inputs in the viewport like this:
Backport this to the current master branch and test it to make sure you do not have to create new instances of materials to make it work, if new material instances are needed - then update all the sample scenes as well.
Fixed.