Blender Git Commit Log

Git Commits -> Revision 76f99bd

Revision 76f99bd by Campbell Barton (master)
September 17, 2020, 08:53 (GMT)
Fix T66256: Context overrides crash when operators change context

Using context overrides in Python caused problems for any operator that
changed the context and require these changes to be read back.

CTX_wm_area_set() for e.g. would set the struct member but future
calls to CTX_wm_area() would still return the value defined by Python
callers context overrides.

This also resolves a mismatch between polling and calling operators
from Python, where poll would override the Python context where calling
only overrode the context when a new context was passed in.

Commit Details:

Full Hash: 76f99bd13ae1359d8256d5c34936a97d833b2c8c
Parent Commit: f085ebb
Lines Changed: +141, -17

5 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+8, -1) (Diff)
/source/blender/blenkernel/intern/context.c (+57, -1) (Diff)
/source/blender/python/BPY_extern.h (+10, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+38, -0) (Diff)
/source/blender/python/intern/bpy_operator.c (+28, -15) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021