[Bf-blender-cvs] [32c2e941e63] master: Fix T60417: Hair not instantly updating when editing curve guide

Philipp Oeser noreply at git.blender.org
Wed Jan 23 20:50:35 CET 2019


Commit: 32c2e941e639c6e6e6eb5c60ceacdf360eb13d03
Author: Philipp Oeser
Date:   Fri Jan 11 13:13:55 2019 +0100
Branches: master
https://developer.blender.org/rB32c2e941e639c6e6e6eb5c60ceacdf360eb13d03

Fix T60417: Hair not instantly updating when editing curve guide

Reviewers: sergey, brecht

Maniphest Tasks: T60417

Differential Revision: https://developer.blender.org/D4193

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

M	source/blender/depsgraph/intern/builder/deg_builder_relations.cc
M	source/blender/depsgraph/intern/depsgraph_physics.cc

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

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 838905ac977..a34b7eeb913 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -394,7 +394,8 @@ void DepsgraphRelationBuilder::add_particle_forcefield_relations(
 			ComponentKey eff_key(&relation->ob->id, DEG_NODE_TYPE_TRANSFORM);
 			add_relation(eff_key, key, name);
 
-			if (ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS)) {
+			if (ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) ||
+			    relation->pd->forcefield == PFIELD_GUIDE) {
 				ComponentKey mod_key(&relation->ob->id, DEG_NODE_TYPE_GEOMETRY);
 				add_relation(mod_key, key, name);
 			}
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. */



More information about the Bf-blender-cvs mailing list