From 1d8db50538c4ba933d0a5faf97807ace1a9f6386 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 13 Nov 2018 19:31:44 +0100 Subject: Depsgraph: Remove unused operation code --- source/blender/depsgraph/intern/depsgraph_build.cc | 1 - source/blender/depsgraph/intern/depsgraph_physics.cc | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'source/blender/depsgraph/intern') diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index eb125229c6a..f5b84b91dbe 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -93,7 +93,6 @@ static DEG::eDepsNode_Type deg_build_object_component_type( case DEG_OB_COMP_GEOMETRY: return DEG::DEG_NODE_TYPE_GEOMETRY; case DEG_OB_COMP_EVAL_POSE: return DEG::DEG_NODE_TYPE_EVAL_POSE; case DEG_OB_COMP_BONE: return DEG::DEG_NODE_TYPE_BONE; - case DEG_OB_COMP_EVAL_PARTICLES: return DEG::DEG_NODE_TYPE_EVAL_PARTICLES; case DEG_OB_COMP_SHADING: return DEG::DEG_NODE_TYPE_SHADING; case DEG_OB_COMP_CACHE: return DEG::DEG_NODE_TYPE_CACHE; } diff --git a/source/blender/depsgraph/intern/depsgraph_physics.cc b/source/blender/depsgraph/intern/depsgraph_physics.cc index 1299542e823..0a54caebace 100644 --- a/source/blender/depsgraph/intern/depsgraph_physics.cc +++ b/source/blender/depsgraph/intern/depsgraph_physics.cc @@ -149,10 +149,9 @@ void DEG_add_forcefield_relations(DepsNodeHandle *handle, DEG_add_object_relation( handle, relation->ob, DEG_OB_COMP_TRANSFORM, name); if (relation->psys) { - DEG_add_object_relation( - handle, relation->ob, DEG_OB_COMP_EVAL_PARTICLES, name); - /* TODO: remove this when/if EVAL_PARTICLES is sufficient for up to - * date particles. */ + /* TODO(sergey): Consider going more granular with more dedicated + * particle system operation. + */ DEG_add_object_relation( handle, relation->ob, DEG_OB_COMP_GEOMETRY, name); } -- cgit v1.2.3