[Bf-blender-cvs] [86560815615] blender2.8: Depsgraph: Remove obscure code which was only needed for old OSD implementation
Sergey Sharybin
noreply at git.blender.org
Mon Aug 13 13:12:36 CEST 2018
Commit: 865608156157951e1e1c1bda1906e5fbfd762ced
Author: Sergey Sharybin
Date: Mon Aug 13 13:03:50 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB865608156157951e1e1c1bda1906e5fbfd762ced
Depsgraph: Remove obscure code which was only needed for old OSD implementation
===================================================================
M source/blender/depsgraph/CMakeLists.txt
M source/blender/depsgraph/DEG_depsgraph.h
M source/blender/depsgraph/intern/depsgraph.cc
===================================================================
diff --git a/source/blender/depsgraph/CMakeLists.txt b/source/blender/depsgraph/CMakeLists.txt
index c9cdea34401..c39ce65a337 100644
--- a/source/blender/depsgraph/CMakeLists.txt
+++ b/source/blender/depsgraph/CMakeLists.txt
@@ -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}")
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h
index 7d827f48f9c..7e26987f936 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -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
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc
index 2a24d72eb67..3652cfe61fe 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -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;
}
More information about the Bf-blender-cvs
mailing list