Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-06 | Cleanup: spelling in comments, formatting, move comments into headers | Campbell Barton | |
2022-07-27 | Fix corrupted blend files after issues from new name_map code. | Bastien Montagne | |
Add a version of #BKE_main_namemap_validate that also fixes the issues, and call it in a do_version to fix recent .blend files saved after the regression introduced in rB7f8d05131a77. This is mandatory to fix some production files here at the studio, among other things. | |||
2022-07-27 | ID namemap: Add check for consistency. | Bastien Montagne | |
Add a util function to check that content of a given Main and the namemaps in it are consistent. Add some asserts calling this check after file read, and after some override operations. | |||
2022-07-22 | Cleanup: quiet nonull-compare warnings with GCC | Campbell Barton | |
2022-07-20 | Cleanup: use BLI_strncpy instead of strcpy | Jacques Lucke | |
Using `strcpy` resulted in `stringop-truncation` warnings for me. | |||
2022-07-20 | IDManagement: Speedup ID unique name assignment by tracking used ↵ | Aras Pranckevicius | |
names/basenames/suffixes An implementation of T73412, roughly as outlined there: Track the names that are in use, as well as base names (before numeric suffix) plus a bit map for each base name, indicating which numeric suffixes are already used. This is done per-Main/Library, per-object-type. Timings (Windows, VS2022 Release build, AMD Ryzen 5950X): - Scene with 10k cubes, Shift+D to duplicate them all: 8.7s -> 1.9s. Name map memory usage for resulting 20k objects: 4.3MB. - Importing a 2.5GB .obj file of exported Blender 3.0 splash scene (24k objects), using the new C++ importer: 34.2s-> 22.0s. Name map memory usage for resulting scene: 8.6MB. - Importing Disney Moana USD scene (almost half a million objects): 56min -> 10min. Name map usage: ~100MB. Blender crashes later on when trying to render it, in the same place in both cases, but that's for another day. Reviewed By: Bastien Montagne Differential Revision: https://developer.blender.org/D14162 |