7b53ab3a5f
This could happen when e.g. overriding context with just the area. Now add poll functions that check for an active region when running operators that require a region. The fix is similar to72688791dcAlternatively, we could have a fix similar toa8892c7264(getting the correct region from the area), this would require less setup by scripters, however for some operators the usage of the region is a little further down the line, so implementation would be a bit more involved. Also: for some of the operators, this would have to be done in both `invoke` and `exec` (so would be more duplicate code changes). Pull Request: https://projects.blender.org/blender/blender/pulls/119696