diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-04 14:10:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-04 14:10:27 +0300 |
commit | 33987caf3e9b752a910a616ad95531b067bfb898 (patch) | |
tree | 0c4e66a3bc1612ea4e495b9a2523f3cb66625dfe /source/blender/makesrna/intern/rna_layer.c | |
parent | 944458fe6c6e34732a75b3c8adb11161f523a1d9 (diff) |
Fix T63260: Rigid body connect
Diffstat (limited to 'source/blender/makesrna/intern/rna_layer.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_layer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_layer.c b/source/blender/makesrna/intern/rna_layer.c index 003faed5b81..fa8a44ed10d 100644 --- a/source/blender/makesrna/intern/rna_layer.c +++ b/source/blender/makesrna/intern/rna_layer.c @@ -178,6 +178,13 @@ static void rna_ViewLayer_update_tagged(ID *id_ptr, ViewLayer *view_layer, Main Scene *scene = (Scene *)id_ptr; 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 + * 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 + * be updated. After re-do of such operator view layer's dependency graph will not be marked + * as active. */ + DEG_make_active(depsgraph); BKE_scene_graph_update_tagged(depsgraph, bmain); # ifdef WITH_PYTHON |