An easier way to write the poll method

A slightly more manageable way to write the body of the poll method would be:

return context.object.select_get() and context.object.type in ('MESH', 'CURVE')

And it would just be a matter of adding types to the list, rather than writing a lot of comparison statements.

  • Jonathan Lampel replied

    That is much better, thanks Markus!