32 switch (result.action) {
34 CLOG_INFO(&
LOG, 4,
"ID '%s' not renamed, already using the requested name",
id.name + 2);
39 "ID '%s' not renamed, requested new name '%s' would collide with an existing one",
44 CLOG_INFO(&
LOG, 4,
"ID '%s' renamed without any collision",
id.name + 2);
49 "ID '%s' renamed with adjustment from requested name '%s', to avoid name "
50 "collision with another ID",
54 "Data-block renamed to '%s', try again to force renaming it to '%s'",
62 "ID '%s' forcefully renamed, another ID had to also be renamed to avoid name collision",
65 "Name in use. The other data-block was renamed to ā%sā",
66 result.other_id->name + 2);
IDNewNameResult BKE_id_rename(Main &bmain, ID &id, blender::StringRefNull name, const IDNewNameMode mode=IDNewNameMode::RenameExistingNever)
#define CLOG_INFO(clg_ref, level,...)
ID and Library types, which are fundamental for SDNA.
#define ID_IS_EDITABLE(_id)
Read Guarded memory(de)allocation.
bool ED_id_rename(Main &bmain, ID &id, blender::StringRefNull name)
@ RENAMED_COLLISION_FORCED
@ RENAMED_COLLISION_ADJUSTED
void WM_reportf(eReportType type, const char *format,...)