diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-27 17:34:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-27 17:34:36 +0300 |
commit | 519110477626da78ae9c45f4546293ad319c4d7e (patch) | |
tree | be6b05abdf0acc39813800b020a00752e6b067e2 /source | |
parent | 488b6fa669d5ceafb8d19b451533210bf01ba258 (diff) |
Depsgraph: Sanitize placement of component types in switch statement
Makes it more clear why and what is being ignored.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_flush.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |