Fix #120058: Crash on undo rename in edit mode #120099

Closed
Jake wants to merge 1 commits from Jake-Faulkner/blender:Fix-120058 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 3 additions and 2 deletions

View File

@ -2130,8 +2130,9 @@ void BKE_libblock_ensure_unique_name(Main *bmain, ID *id)
return;
}
/* BKE_id_new_name_validate also takes care of sorting. */
if (!ID_IS_LINKED(id) && BKE_id_new_name_validate(bmain, lb, id, nullptr, false)) {
if (!ID_IS_LINKED(id)) {
/* BKE_id_new_name_validate also takes care of sorting. */
BKE_id_new_name_validate(bmain, lb, id, nullptr, false);
bmain->is_memfile_undo_written = false;
}
}