Page MenuHome

Cleanup: Use topology cache of group output node
ClosedPublic

Authored by Iliya Katueshenock (Moder) on Dec 5 2022, 11:49 PM.

Details

Summary

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.

Diff Detail

Event Timeline

Iliya Katueshenock (Moder) requested review of this revision.Dec 5 2022, 11:49 PM
Iliya Katueshenock (Moder) created this revision.
Iliya Katueshenock (Moder) retitled this revision from Cleanup: Use topology cache of group output node in field interface update to Cleanup: Use topology cache of group output node.
  • Also shader and texture common functions
Iliya Katueshenock (Moder) set the repository for this revision to rB Blender.

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.

This revision is now accepted and ready to land.Dec 6 2022, 1:15 AM

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.