Commit: 15fd5375804189ff28b80a43c21e0a1fd8bc5dca Author: Bastien Montagne Date: Wed Feb 26 10:51:10 2020 +0100 Branches: undo-experiments-swap-reread-datablocks https://developer.blender.org/rB15fd5375804189ff28b80a43c21e0a1fd8bc5dca
Rmove full undo barrier when renaming an ID, we don't need it anymore. Keeping the undo barrier system though, think this might still be useful in some cases, also to be exposed as debug option and/or through Py API... =================================================================== M source/blender/blenkernel/intern/lib_id.c =================================================================== diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 6fe8e6b93f8..575edbb1f7e 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -2438,9 +2438,6 @@ void BLI_libblock_ensure_unique_name(Main *bmain, const char *name) BKE_id_new_name_validate(lb, idtest, NULL); bmain->is_memfile_undo_written = false; } - - /* ID renaming requires an 'undo barrier'. */ - bmain->use_memfile_full_barrier = true; } /** @@ -2452,9 +2449,6 @@ void BKE_libblock_rename(Main *bmain, ID *id, const char *name) if (BKE_id_new_name_validate(lb, id, name)) { bmain->is_memfile_undo_written = false; } - - /* ID renaming requires an 'undo barrier'. */ - bmain->use_memfile_full_barrier = true; } /** _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs