diff options
author | Bastien Montagne <bastien@blender.org> | 2021-03-25 14:45:01 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-03-25 14:45:01 +0300 |
commit | 9947f2095610c56867e14b6f66923abe62782988 (patch) | |
tree | cd319b7b086ac395a35b7a2613d08cb20ae914e0 /source/blender/blenkernel | |
parent | 51b316dbc2edfc754873b5d1ae3a7730f51a4a34 (diff) |
LibOverride; Fix missing re-creation of auto-generated override rules after resync.
While not useful for the override system itself, this is rather
important for user feedback.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/lib_override.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c index 8b23acdde9b..2ee4f1597be 100644 --- a/source/blender/blenkernel/intern/lib_override.c +++ b/source/blender/blenkernel/intern/lib_override.c @@ -812,6 +812,9 @@ bool BKE_lib_override_library_create( BKE_main_id_clear_newpoins(bmain); BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false); + /* We need to rebuild some of the deleted override rules (for UI feedback purpose). */ + BKE_lib_override_library_main_operations_create(bmain, true); + return success; } @@ -1095,6 +1098,9 @@ bool BKE_lib_override_library_resync(Main *bmain, BKE_main_id_clear_newpoins(bmain); BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false); /* That one should not be needed in fact. */ + /* We need to rebuild some of the deleted override rules (for UI feedback purpose). */ + BKE_lib_override_library_main_operations_create(bmain, true); + return success; } |