Commit: 33987caf3e9b752a910a616ad95531b067bfb898 Author: Sergey Sharybin Date: Thu Jul 4 13:10:09 2019 +0200 Branches: master https://developer.blender.org/rB33987caf3e9b752a910a616ad95531b067bfb898
Fix T63260: Rigid body connect =================================================================== M source/blender/makesrna/intern/rna_layer.c =================================================================== 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 _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
