Campbell Barton
f438344cf2
PyAPI: temporary context override support
...
Support a way to temporarily override the context from Python.
- Added method `Context.temp_override` context manager.
- Special support for windowing variables "window", "area" and "region",
other context members such as "active_object".
- Nesting context overrides is supported.
- Previous windowing members are restored when the context exists unless
they have been removed.
- Overriding context members by passing a dictionary into operators in
`bpy.ops` has been deprecated and warns when used.
This allows the window in a newly loaded file to be used, see: T92464
Reviewed by: mont29
Ref D13126
2022-04-20 12:19:35 +10:00
..
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-03-28 14:14:31 +11:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-07 13:20:32 +02:00
2022-02-11 09:14:36 +11:00
2022-04-06 19:08:10 +10:00
2022-04-06 18:02:58 +10:00
2022-03-15 15:20:38 +11:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-06 18:02:58 +10:00
2022-02-11 09:14:36 +11:00
2022-03-08 22:15:12 +11:00
2022-03-08 22:15:12 +11:00
2022-04-08 11:49:50 +10:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-03-14 17:08:46 +01:00
2022-02-11 09:14:36 +11:00
2022-04-20 12:19:35 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-03-14 17:08:46 +01:00
2022-02-11 09:14:36 +11:00
2022-03-28 14:14:31 +11:00
2022-03-14 17:08:46 +01:00
2022-02-11 09:14:36 +11:00
2022-04-20 12:19:35 +10:00
2022-04-20 12:19:35 +10:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-08 13:28:55 +10:00
2022-04-07 15:17:04 +10:00
2022-04-20 12:19:35 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-04-20 12:16:11 +10:00
2022-04-20 12:16:11 +10:00
2022-04-06 18:02:58 +10:00
2022-03-28 17:15:41 +11:00
2022-03-14 17:08:46 +01:00
2022-02-11 09:14:36 +11:00
2022-04-08 11:49:50 +10:00
2022-02-11 09:14:36 +11:00
2022-04-11 12:03:09 +10:00
2022-04-04 13:34:42 +10:00
2022-04-20 12:19:35 +10:00
2022-02-11 09:14:36 +11:00