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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-01-11 15:13:55 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-01-23 22:47:43 +0300
commit32c2e941e639c6e6e6eb5c60ceacdf360eb13d03 (patch)
tree409439a733c0b69c7e432f6a1234e46a14c820e4 /source/blender/depsgraph/intern/depsgraph_physics.cc
parent657806691b99f1e6f0f297f273e5ff9c1085564c (diff)
Fix T60417: Hair not instantly updating when editing curve guide
Reviewers: sergey, brecht Maniphest Tasks: T60417 Differential Revision: https://developer.blender.org/D4193
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_physics.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_physics.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_physics.cc b/source/blender/depsgraph/intern/depsgraph_physics.cc
index 8d1b923f834..e091f612a05 100644
--- a/source/blender/depsgraph/intern/depsgraph_physics.cc
+++ b/source/blender/depsgraph/intern/depsgraph_physics.cc
@@ -155,7 +155,8 @@ void DEG_add_forcefield_relations(DepsNodeHandle *handle,
handle, relation->ob, DEG_OB_COMP_TRANSFORM, name);
if (relation->psys ||
- ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS))
+ ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) ||
+ relation->pd->forcefield == PFIELD_GUIDE)
{
/* TODO(sergey): Consider going more granular with more dedicated
* particle system operation. */