Use Lights
The issue was that the code checked for the `OB_GPENCIL_LEGACY` type instead of `OB_GREASE_PENCIL`.