diff options
author | Bastien Montagne <bastien@blender.org> | 2020-11-10 18:10:47 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-11-10 18:14:16 +0300 |
commit | 2ecab4c8a6170c1c877fa4d2a67ae820baa68c35 (patch) | |
tree | b78eacfd7cde63c6959bd7cecf32b6fdd2ffe3e0 /source/blender/blenkernel | |
parent | de8d7003bc55d9d8401b51af80ee6eb6b35e66e2 (diff) |
LibOverride: Optimize deletion of overrides in liboverride delete.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/lib_override.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c index 04c427aaf9a..15736011f6f 100644 --- a/source/blender/blenkernel/intern/lib_override.c +++ b/source/blender/blenkernel/intern/lib_override.c @@ -884,12 +884,7 @@ void BKE_lib_override_library_delete(Main *bmain, ID *id_root) FOREACH_MAIN_ID_END; /* Delete the override IDs. */ - FOREACH_MAIN_ID_BEGIN (bmain, id) { - if (id->tag & LIB_TAG_DOIT) { - BKE_id_delete(bmain, id); - } - } - FOREACH_MAIN_ID_END; + BKE_id_multi_tagged_delete(bmain); /* Should not actually be needed here. */ BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false); |