diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-26 18:55:23 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-29 18:28:04 +0300 |
commit | dcdffe719f5e2c5474f26da3c47fb2e147867887 (patch) | |
tree | 1ff9fc99c56720c4822c88207c791784f571de54 | |
parent | b723d3881266c4cd93e57959b476982d2879c15c (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?
-rw-r--r-- | source/blender/blenkernel/intern/lib_id.c | 3 |
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) { |