Page MenuHome

Adding begin/end iterators to NodeEnum
ClosedPublic

Authored by Alex Fuller (mistaed) on Sat, Jan 5, 8:56 PM.

Details

Summary

Hi,

I needed to add begin/end iterators to NodeEnum so that I could query the names and enum values of a given enum while developing GafferCycles. I was originally just making a for-loop with a made-up upper-bound and making a call to enum->exists(i) but I feel that it is too error-prone, especially when some enums having high numbers and are not in a sequence eg. Multiscatter GGX/GGX are like integer '30' and '32'.

Cheers

Diff Detail

Repository
rB Blender

Event Timeline

This revision is now accepted and ready to land.Mon, Jan 14, 3:43 PM
This revision was automatically updated to reflect the committed changes.