While technically valid, a context without a window set can't access the active object or view layer, causing object mode setting to fail, making the checks not all that useful. Use Context.temp_override(..) to set the context's window.
15 KiB
15 KiB