Fix #115192: Inconsistent behavior renaming data-blocks #116246

Merged
Pratik Borhade merged 2 commits from PratikPB2123/blender:115192-id-naming into main 2024-01-15 12:45:57 +01:00

2 Commits

Author SHA1 Message Date
Pratik Borhade 1281e7cb1e Change is_memfile_undo_written when suffix added to id name 2023-12-20 17:19:28 +05:30
Pratik Borhade 05810e0879 Fix #115192: Inconsistancy renaming datablock behaviour
This is due to `BLI_findstring` returning wrong id from passed name.
Two IDs can have same name before making them unique so it can return
wrong id. To fix this, pass id argument instead of id_name to
`BLI_libblock_ensure_unique_name` and skip the use of `BLI_findstring`
2023-12-16 10:43:06 +05:30