Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-12-08 16:45:15 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-12-08 17:05:38 +0300
commit82c0a5416855b3dc762d3d03bdae637cd7f8dd83 (patch)
treec08ad8e155d9b7cca8f70b95cf21671219a6b530 /source/blender/blenkernel/BKE_group.h
parentaf47ae07023f4a5b817bedca82c7b007ddefc8ba (diff)
Depsgraph: Use dedicated function for group evaluation
It is still based on generic collection evaluation, but the idea is to avoid having view_layer pointer passed from group to it's evaluation function. This is essential for copy-on-write, where we need to pass view_layer pointer from a copied datablock, but that copy is not yet available at construction time. Also, this is NOT the case where we want to expand datablock at a construction time, just to keep our life easier.
Diffstat (limited to 'source/blender/blenkernel/BKE_group.h')
-rw-r--r--source/blender/blenkernel/BKE_group.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_group.h b/source/blender/blenkernel/BKE_group.h
index ac436876dc4..b522ad65fe7 100644
--- a/source/blender/blenkernel/BKE_group.h
+++ b/source/blender/blenkernel/BKE_group.h
@@ -55,6 +55,13 @@ bool BKE_group_is_animated(struct Group *group, struct Object *parent);
void BKE_group_handle_recalc_and_update(const struct EvaluationContext *eval_ctx, struct Scene *scene, struct Object *parent, struct Group *group);
+/* Dependency graph evaluation. */
+
+void BKE_group_eval_view_layers(const struct EvaluationContext *eval_ctx,
+ struct Group *group);
+
+/* Helper macros. */
+
#define FOREACH_GROUP_BASE(_group, _base) \
for (Base *_base = (Base *)(_group)->view_layer->object_bases.first; \
_base; \