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:
authorDalai Felinto <dfelinto@gmail.com>2017-02-09 13:48:09 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-09 13:48:09 +0300
commit0692fc9665d089cbb7779a444864fa431986abf2 (patch)
tree5f0a6ec4dbc67d7e2c095c685a35ff821b8acceb /source/blender
parent6b372e3a22cbcdcb17a6239238189d6659418516 (diff)
CollectionEngineSettings calculate: set COLLECTION_PROP_USE for combined property
This way the render engines can have a fallback value (scene or layer default value) for the shader values that were never set.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/layer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c
index 667b40751ed..a674d08442e 100644
--- a/source/blender/blenkernel/intern/layer.c
+++ b/source/blender/blenkernel/intern/layer.c
@@ -910,6 +910,8 @@ static void collection_engine_settings_copy(CollectionEngineSettings *ces_dst, C
*/
static void collection_engine_property_set (CollectionEngineProperty *prop_dst, CollectionEngineProperty *prop_src){
if ((prop_src->flag & COLLECTION_PROP_USE) != 0) {
+ /* mark the property as used, so the engine knows if the value was ever set*/
+ prop_dst->flag |= COLLECTION_PROP_USE;
switch (prop_src->type) {
case COLLECTION_PROP_TYPE_FLOAT:
((CollectionEnginePropertyFloat *)prop_dst)->value = ((CollectionEnginePropertyFloat *)prop_src)->value;