Depsgraph: Remove obscure code which was only needed for old OSD implementation

This commit is contained in:
Sergey Sharybin 2018-08-13 13:03:50 +02:00
parent 3ee6b940df
commit 8656081561
3 changed files with 0 additions and 22 deletions

View File

@ -113,8 +113,4 @@ if(WITH_BOOST)
add_definitions(-DHAVE_BOOST_FUNCTION_BINDINGS)
endif()
if(WITH_OPENSUBDIV)
add_definitions(-DWITH_OPENSUBDIV)
endif()
blender_add_lib(bf_depsgraph "${SRC}" "${INC}" "${INC_SYS}")

View File

@ -80,10 +80,6 @@ enum {
* who're using curve deform, where_on_path and so.
*/
DAG_EVAL_NEED_CURVE_PATH = 1,
/* Scene evaluation would need to have object's data on CPU,
* meaning no GPU shortcuts is allowed.
*/
DAG_EVAL_NEED_CPU = 2,
};
#ifdef __cplusplus

View File

@ -380,20 +380,6 @@ DepsRelation *Depsgraph::add_new_relation(OperationDepsNode *from,
}
/* Create new relation, and add it to the graph. */
rel = OBJECT_GUARDED_NEW(DepsRelation, from, to, description);
/* TODO(sergey): Find a better place for this. */
#ifdef WITH_OPENSUBDIV
ComponentDepsNode *comp_node = from->owner;
if (comp_node->type == DEG_NODE_TYPE_GEOMETRY) {
IDDepsNode *id_to = to->owner->owner;
IDDepsNode *id_from = from->owner->owner;
if (id_to != id_from && (id_to->id_orig->recalc & ID_RECALC_ALL)) {
if ((id_from->eval_flags & DAG_EVAL_NEED_CPU) == 0) {
id_from->tag_update(this);
id_from->eval_flags |= DAG_EVAL_NEED_CPU;
}
}
}
#endif
return rel;
}