Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_layer.c
| Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| # 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 | ||||
| Scene *scene = (Scene *)id_ptr; | Scene *scene = (Scene *)id_ptr; | ||||
| Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true); | Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true); | ||||
| /* NOTE: This is similar to CTX_data_depsgraph(). Ideally such access would be de-duplicated | /* NOTE: This is similar to CTX_data_depsgraph_pointer(). Ideally such access would be | ||||
| * across all possible cases, but for now this is safest and easiest way to go. | * de-duplicated across all possible cases, but for now this is safest and easiest way to go. | ||||
| * | * | ||||
| * The reason for this is that it's possible to have Python operator which asks view layer to | * The reason for this is that it's possible to have Python operator which asks view layer to | ||||
| * be updated. After re-do of such operator view layer's dependency graph will not be marked | * be updated. After re-do of such operator view layer's dependency graph will not be marked | ||||
| * as active. */ | * as active. */ | ||||
| DEG_make_active(depsgraph); | DEG_make_active(depsgraph); | ||||
| BKE_scene_graph_update_tagged(depsgraph, bmain); | BKE_scene_graph_update_tagged(depsgraph, bmain); | ||||
| # ifdef WITH_PYTHON | # ifdef WITH_PYTHON | ||||
| ▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines | |||||