Depsgraph: Remove meaningless evaluation mode

With the current implementation it only confuses logic around
checks like vewport/render subdivision levels.

If this mode is really needed for any decision making, implement
this properly.
This commit is contained in:
2018-11-14 11:43:25 +01:00
parent d3c08b1aa6
commit eefae747da
2 changed files with 1 additions and 2 deletions

View File

@@ -71,7 +71,6 @@ struct ViewLayer;
typedef enum eEvaluationMode {
DAG_EVAL_VIEWPORT = 0, /* evaluate for OpenGL viewport */
DAG_EVAL_RENDER = 1, /* evaluate for render purposes */
DAG_EVAL_BACKGROUND = 2, /* evaluate in background for baking/caching */
} eEvaluationMode;
/* DagNode->eval_flags */

View File

@@ -200,7 +200,7 @@ Depsgraph *DEG_graph_filter(const Depsgraph *graph_src, Main *bmain, DEG_FilterQ
/* TODO: Improve the builders to not add any ID nodes we don't need later (e.g. ProxyBuilder?) */
Depsgraph *graph_new = DEG_graph_new(deg_graph_src->scene,
deg_graph_src->view_layer,
DAG_EVAL_BACKGROUND);
deg_graph_src->mode);
DEG_graph_build_from_view_layer(graph_new,
bmain,
deg_graph_src->scene,