stig-atle / io_scene_pbrt

Exporter for blender that exports the scene into pbrt's ascii file format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

image

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.