Blender V4.3
BPyContextTempOverride Struct Reference

Public Attributes

PyObject_HEAD bContextcontext
 
ContextStore ctx_init
 
ContextStore ctx_temp
 
struct { 
 
   bScreen *   screen 
 
ctx_temp_orig 
 
bContext_PyState py_state
 
PyObject * py_state_context_dict
 

Detailed Description

Definition at line 126 of file bpy_rna_context.cc.

Member Data Documentation

◆ context

PyObject_HEAD bContext* BPyContextTempOverride::context

Definition at line 128 of file bpy_rna_context.cc.

◆ ctx_init

ContextStore BPyContextTempOverride::ctx_init

Definition at line 130 of file bpy_rna_context.cc.

◆ ctx_temp

ContextStore BPyContextTempOverride::ctx_temp

Definition at line 131 of file bpy_rna_context.cc.

◆ [struct]

struct { ... } BPyContextTempOverride::ctx_temp_orig

◆ py_state

bContext_PyState BPyContextTempOverride::py_state

Bypass Python overrides set when calling an operator from Python.

Definition at line 142 of file bpy_rna_context.cc.

◆ py_state_context_dict

PyObject* BPyContextTempOverride::py_state_context_dict

This dictionary is used to store members that don't have special handling, see: bpy_context_temp_override_extract_known_args, these will then be accessed via BPY_context_member_get.

This also supports nested stacking, so a nested temp-context-overrides will overlay the new members on the old members (instead of ignoring them).

Definition at line 151 of file bpy_rna_context.cc.

◆ screen

bScreen* BPyContextTempOverride::screen

The original screen of ctx_temp.win, needed when restoring this windows screen as it won't be ctx_init.screen (when switching the window as well as the screen), see #115937.

Definition at line 138 of file bpy_rna_context.cc.


The documentation for this struct was generated from the following file: