This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/doc/python_api/examples
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
..
2021-09-18 19:28:55 +02:00
2019-03-17 21:00:56 +11:00
2021-07-06 12:05:27 +10:00
2019-11-01 10:53:47 +11:00
2019-11-01 10:53:47 +11:00
2019-11-01 10:53:47 +11:00
2019-11-01 10:53:47 +11:00
2019-06-06 17:13:02 +02:00
2021-07-06 12:05:27 +10:00
2012-06-19 22:17:19 +00:00
2015-09-08 19:42:58 +10:00
2019-03-22 00:07:06 +11:00
2019-03-22 00:07:06 +11:00
2019-03-22 00:07:06 +11:00
2021-07-06 12:05:27 +10:00
2016-02-15 19:43:08 +11:00
2015-09-08 19:42:58 +10:00
2019-03-17 21:00:56 +11:00
2015-09-08 19:42:58 +10:00
2021-07-06 12:05:27 +10:00
2021-06-09 03:05:44 +10:00
2021-06-09 03:05:44 +10:00