diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-05-03 12:37:24 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-05-03 12:51:49 +0300 |
commit | 66c74242bba3c2962ff5c3ddc02409171ec86dc3 (patch) | |
tree | 8902283a630a3aa24bf036e8e241b9b517808da6 /source/blender/blenkernel/intern/layer.c | |
parent | bf0ac873ba13996756f0b553c41ea36097a6dec3 (diff) |
Make IDP_MergeGroup recursive
With this we also do not need IDP_MergeGroupValues anymore.
If this causes problems in the future we can always make recursion an
option (like overwrite is).
Diffstat (limited to 'source/blender/blenkernel/intern/layer.c')
-rw-r--r-- | source/blender/blenkernel/intern/layer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c index 6442c53635d..b74b6ac7e6b 100644 --- a/source/blender/blenkernel/intern/layer.c +++ b/source/blender/blenkernel/intern/layer.c @@ -1391,7 +1391,7 @@ static void idproperty_reset(IDProperty **props, IDProperty *props_ref) *props = IDP_New(IDP_GROUP, &val, ROOT_PROP); if (props_ref) { - IDP_MergeGroupValues(*props, props_ref); + IDP_MergeGroup(*props, props_ref, true); } } @@ -1435,7 +1435,7 @@ void BKE_layer_eval_layer_collection(struct EvaluationContext *UNUSED(eval_ctx), } else { idproperty_reset(&layer_collection->properties_evaluated, parent_layer_collection->properties_evaluated); - IDP_MergeGroupValues(layer_collection->properties_evaluated, layer_collection->properties); + IDP_MergeGroup(layer_collection->properties_evaluated, layer_collection->properties, true); } } @@ -1443,7 +1443,7 @@ void BKE_layer_eval_layer_collection(struct EvaluationContext *UNUSED(eval_ctx), Base *base = link->data; if (is_visible) { - IDP_MergeGroupValues(base->collection_properties, layer_collection->properties_evaluated); + IDP_MergeGroup(base->collection_properties, layer_collection->properties_evaluated, true); base->flag |= BASE_VISIBLED; } |