[Bf-blender-cvs] [b6a9e88aff5] master: Fix T63648: Missing update when changing particle force fields

Sergey Sharybin noreply at git.blender.org
Fri Apr 19 15:41:37 CEST 2019


Commit: b6a9e88aff5b9be3fa8351c6578554400fcb32ab
Author: Sergey Sharybin
Date:   Fri Apr 19 15:38:45 2019 +0200
Branches: master
https://developer.blender.org/rBb6a9e88aff5b9be3fa8351c6578554400fcb32ab

Fix T63648: Missing update when changing particle force fields

Force fields requires relations update in the dependency graph.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 393e6d90ec6..4dea47eaf32 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -524,6 +524,8 @@ static void rna_FieldSettings_type_set(PointerRNA *ptr, int value)
 
 static void rna_FieldSettings_dependency_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 {
+  DEG_relations_tag_update(bmain);
+
   if (particle_id_check(ptr)) {
     DEG_id_tag_update((ID *)ptr->id.data,
                       ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_ANIMATION |
@@ -534,8 +536,6 @@ static void rna_FieldSettings_dependency_update(Main *bmain, Scene *scene, Point
 
     rna_FieldSettings_shape_update(bmain, scene, ptr);
 
-    DEG_relations_tag_update(bmain);
-
     if (ob->type == OB_CURVE && ob->pd->forcefield == PFIELD_GUIDE)
       DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_ANIMATION);
     else



More information about the Bf-blender-cvs mailing list