Depsgraph: Remove unused operation code
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 13 Nov 2018 18:31:44 +0000 (19:31 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 14 Nov 2018 13:08:39 +0000 (14:08 +0100)
source/blender/depsgraph/DEG_depsgraph_build.h
source/blender/depsgraph/intern/depsgraph_build.cc
source/blender/depsgraph/intern/depsgraph_physics.cc

index c09c811121b5b433edd6b320d8d5d18927d82722..1895b483644dc0ea04b72d1b16ca3c13f16dfeab 100644 (file)
@@ -125,8 +125,6 @@ typedef enum eDepsObjectComponentType {
        /* Bone Component - Child/Subcomponent of Pose */
        DEG_OB_COMP_BONE,
 
-       /* Particle Systems Component */
-       DEG_OB_COMP_EVAL_PARTICLES,
        /* Material Shading Component */
        DEG_OB_COMP_SHADING,
        /* Cache Component */
index eb125229c6a577460608be0e6c1b19843955b3e8..f5b84b91dbe6a2973823649e6c69cbf7246a448b 100644 (file)
@@ -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;
        }
index 1299542e823a8351c7b16d76996b0194d1f5cc21..0a54caebacee57ed811ae4846c1a94e4f6065ad8 100644 (file)
@@ -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);
                }