[Bf-blender-cvs] [0e95270eb7c] blender2.8: Depsgraph: placeholder function for COW objects query
Dalai Felinto
noreply at git.blender.org
Tue Apr 4 14:31:12 CEST 2017
Commit: 0e95270eb7c46f098923f5c44f81ba9857562c17
Author: Dalai Felinto
Date: Tue Apr 4 13:08:33 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB0e95270eb7c46f098923f5c44f81ba9857562c17
Depsgraph: placeholder function for COW objects query
===================================================================
M source/blender/blenkernel/BKE_depsgraph.h
M source/blender/blenkernel/intern/depsgraph.c
===================================================================
diff --git a/source/blender/blenkernel/BKE_depsgraph.h b/source/blender/blenkernel/BKE_depsgraph.h
index 40564aeabe9..93db48ce49a 100644
--- a/source/blender/blenkernel/BKE_depsgraph.h
+++ b/source/blender/blenkernel/BKE_depsgraph.h
@@ -44,6 +44,7 @@
extern "C" {
#endif
+struct Depsgraph;
struct ID;
struct Main;
struct Object;
@@ -174,6 +175,10 @@ const char *DAG_get_node_name(struct Scene *scene, void *node_v);
short DAG_get_eval_flags_for_object(struct Scene *scene, void *object);
bool DAG_is_acyclic(struct Scene *scene);
+/* ************************ DAG ********************* */
+
+struct Object *DAG_get_object(struct Depsgraph *depsgraph, struct Object *ob);
+
#ifdef __cplusplus
}
#endif
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index c5b8a18fd65..f0b1363e647 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -228,6 +228,18 @@ bool DAG_is_acyclic(Scene *UNUSED(scene))
return false;
}
+/* ************************ DAG ********************* */
+
+/**
+ * Get the object as properly evaluated by depsgraph.
+ */
+Object *DAG_get_object(Depsgraph *depsgraph, Object *ob)
+{
+ /* XXX TODO */
+ UNUSED_VARS(depsgraph);
+ return ob;
+}
+
/* ************************************
* This functions are to be supported *
* ************************************
More information about the Bf-blender-cvs
mailing list