Using a cache greatly simplifies access to the output node.
I touched on the most common and understandable cases for me.
The texture nodes were touched because it looked pretty generic.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
Generally I'm not sure it's worth doing any cleanup in texture nodes at all, since the aim is to completely replace it somewhat soon. But the improvement looks nice here for shader nodes anyway. I think that's only used for viewport & EEVEE stuff though.
Comment Actions
It wasn't hard for me to change it now, so I just didn't see much reason not to do it.
If this code changes according to the new nodes, it will be good if the new way of accessing the output node is also used.