diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-07 18:54:09 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-07 18:54:09 +0300 |
commit | 6432c8cc002cb7391e2ac5eae3c300fed28fc422 (patch) | |
tree | 10005610d94a4e23b305d1661d9be72795c7f563 /source/blender/blenkernel/intern/collection.c | |
parent | 6bf9c8ac8918a6656c20cca2c08f20b38e90980c (diff) |
Layers: get/update CollectionEngineSettings (depsgraph placeholder)
Every time:
* A collection settings is set
* A collection visibility changes
* An object is added/removed/ ...
We need to recalculate the "accumulated" CollectionEngineSettings that
the render engine should use for an object.
This is to be handled by the depsgraph. Meanwhile this code should allow
us to start using those settings in the render engines.
Note: We are storing this in the objects, which means we can only have
one active calculated option every time.
This is intended to get the conversation with the Depsgraph department
going.
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r-- | source/blender/blenkernel/intern/collection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c index f374ebd1e53..2798edfc47f 100644 --- a/source/blender/blenkernel/intern/collection.c +++ b/source/blender/blenkernel/intern/collection.c @@ -119,6 +119,7 @@ static void layer_collection_remove(SceneLayer *sl, ListBase *lb, const SceneCol LayerCollection *lc = lb->first; while(lc) { if (lc->scene_collection == sc) { + BKE_scene_layer_engine_settings_collection_recalculate(sl, lc); BKE_layer_collection_free(sl, lc); BLI_remlink(lb, lc); |