[Bf-blender-cvs] [771ea2d73fd] master: Fix missing update when setting rigid body world collection

Brecht Van Lommel noreply at git.blender.org
Wed Jul 3 20:45:20 CEST 2019


Commit: 771ea2d73fdba8bc9bec61e6592afa8c758e5a8c
Author: Brecht Van Lommel
Date:   Wed Jul 3 18:41:17 2019 +0200
Branches: master
https://developer.blender.org/rB771ea2d73fdba8bc9bec61e6592afa8c758e5a8c

Fix missing update when setting rigid body world collection

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index b47454ecd84..dcbbdd67d7b 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1666,6 +1666,13 @@ static void rna_Scene_use_nodes_update(bContext *C, PointerRNA *ptr)
   DEG_relations_tag_update(CTX_data_main(C));
 }
 
+static void rna_Physics_relations_update(Main *bmain,
+                                         Scene *UNUSED(scene),
+                                         PointerRNA *UNUSED(ptr))
+{
+  DEG_relations_tag_update(bmain);
+}
+
 static void rna_Physics_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
 {
   Scene *scene = (Scene *)ptr->id.data;
@@ -7346,7 +7353,7 @@ void RNA_def_scene(BlenderRNA *brna)
   RNA_def_property_pointer_sdna(prop, NULL, "rigidbody_world");
   RNA_def_property_struct_type(prop, "RigidBodyWorld");
   RNA_def_property_ui_text(prop, "Rigid Body World", "");
-  RNA_def_property_update(prop, NC_SCENE, NULL);
+  RNA_def_property_update(prop, NC_SCENE, "rna_Physics_relations_update");
 
   /* Tool Settings */
   prop = RNA_def_property(srna, "tool_settings", PROP_POINTER, PROP_NONE);



More information about the Bf-blender-cvs mailing list