From 519110477626da78ae9c45f4546293ad319c4d7e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 27 Nov 2017 15:34:36 +0100 Subject: Depsgraph: Sanitize placement of component types in switch statement Makes it more clear why and what is being ignored. --- source/blender/depsgraph/intern/eval/deg_eval_flush.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc index 93f90e5b5d2..715a95432c0 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc @@ -190,8 +190,6 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph) case DEG_NODE_TYPE_ID_REF: case DEG_NODE_TYPE_PARAMETERS: case DEG_NODE_TYPE_SEQUENCER: - case DEG_NODE_TYPE_LAYER_COLLECTIONS: - case DEG_NODE_TYPE_COPY_ON_WRITE: /* Ignore, does not translate to object component. */ BLI_assert(!"This should never happen!"); break; @@ -212,6 +210,9 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph) break; case DEG_NODE_TYPE_BATCH_CACHE: case DEG_NODE_TYPE_SHADING_PARAMETERS: + case DEG_NODE_TYPE_LAYER_COLLECTIONS: + case DEG_NODE_TYPE_COPY_ON_WRITE: + /* Ignore, does not translate to recalc flags. */ break; } -- cgit v1.2.3