|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "CLG_log.h"#include "DNA_ID.h"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "WM_api.hh"#include "ED_id_management.hh"Go to the source code of this file.
Functions | |
| bool | ED_id_rename (Main &bmain, ID &id, blender::StringRefNull name) |
Variables | |
| static CLG_LogRef | LOG = {"ed.id_management"} |
| bool ED_id_rename | ( | Main & | bmain, |
| ID & | id, | ||
| blender::StringRefNull | name ) |
Handle complex user-facing ID renaming behavior, including user feedback (reporting).
Definition at line 25 of file ed_id_management.cc.
References BKE_id_rename(), BLI_assert, CLOG_INFO, ID_IS_EDITABLE, LOG, IDNewNameResult::RENAMED_COLLISION_ADJUSTED, IDNewNameResult::RENAMED_COLLISION_FORCED, IDNewNameResult::RENAMED_NO_COLLISION, RenameExistingSameRoot, RPT_INFO, IDNewNameResult::UNCHANGED, IDNewNameResult::UNCHANGED_COLLISION, and WM_reportf().
Referenced by blender::ed::outliner::namebutton_fn(), template_ID(), and uiItemFullR().
|
static |
We only need this locally.
Definition at line 23 of file ed_id_management.cc.
Referenced by ED_id_rename().