Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-04-19 16:38:45 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-04-19 16:41:32 +0300
commitb6a9e88aff5b9be3fa8351c6578554400fcb32ab (patch)
treeb45a6fc395c3e03da56aa2623294aa3d571f683b /source/blender/makesrna/intern/rna_object_force.c
parent03c81a4fff46f0d9bba4691916446b752e1bb9f5 (diff)
Fix T63648: Missing update when changing particle force fields
Force fields requires relations update in the dependency graph.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r--source/blender/makesrna/intern/rna_object_force.c4
1 files changed, 2 insertions, 2 deletions
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