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:
authorBastien Montagne <bastien@blender.org>2020-06-26 18:55:23 +0300
committerBastien Montagne <bastien@blender.org>2020-06-29 18:28:04 +0300
commitdcdffe719f5e2c5474f26da3c47fb2e147867887 (patch)
tree1ff9fc99c56720c4822c88207c791784f571de54 /source/blender
parentb723d3881266c4cd93e57959b476982d2879c15c (diff)
Fix ID_swap not keeping original recalc flags.
Note that we might be missing more things there still, maybe some tags e.g. should also be swapped?
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/lib_id.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c
index 1c0ce2a5472..0312fa566e8 100644
--- a/source/blender/blenkernel/intern/lib_id.c
+++ b/source/blender/blenkernel/intern/lib_id.c
@@ -679,6 +679,9 @@ static void id_swap(Main *bmain, ID *id_a, ID *id_b, const bool do_full_id)
/* Exception: IDProperties. */
id_a->properties = id_b_back.properties;
id_b->properties = id_a_back.properties;
+ /* Exception: recalc flags. */
+ id_a->recalc = id_b_back.recalc;
+ id_b->recalc = id_a_back.recalc;
}
if (bmain != NULL) {