Currently, poll function of operators can only get the modifier they are supposed to work on from the context. This is often missing (when called from shortcuts e.g., also with drag-n-drop of modifier panels...).
This is a sever problem for liboverrides, as some modifiers should then be edited (the locally added ones), and others not.
I can see two ways to solve that:
- Add current 'active' modifier to context (not sure how, or even if, this is always possible).
- Work around the issue by adding some kind of second 'polling' helper function to be used from invoke/exec functions (since when not found in context, those use event to get the modifier to work on, but events are not passed to poll functions).