Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_context.c
| Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| struct Depsgraph *depsgraph; | struct Depsgraph *depsgraph; | ||||
| # ifdef WITH_PYTHON | # ifdef WITH_PYTHON | ||||
| /* Allow drivers to be evaluated */ | /* Allow drivers to be evaluated */ | ||||
| BPy_BEGIN_ALLOW_THREADS; | BPy_BEGIN_ALLOW_THREADS; | ||||
| # endif | # endif | ||||
| depsgraph = CTX_data_evaluated_depsgraph(C); | depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| # ifdef WITH_PYTHON | # ifdef WITH_PYTHON | ||||
| BPy_END_ALLOW_THREADS; | BPy_END_ALLOW_THREADS; | ||||
| # endif | # endif | ||||
| return depsgraph; | return depsgraph; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines | |||||