Merge branch 'blender-v3.3-release'
This commit is contained in:
commit
dc92c5766f
|
@ -288,6 +288,10 @@ CustomDataLayer *BKE_id_attribute_duplicate(ID *id, const char *name, ReportList
|
|||
bool BKE_id_attribute_remove(ID *id, const char *name, ReportList *reports)
|
||||
{
|
||||
using namespace blender::bke;
|
||||
if (!name || name[0] == '\0') {
|
||||
BKE_report(reports, RPT_ERROR, "The attribute name must not be empty");
|
||||
return false;
|
||||
}
|
||||
if (BKE_id_attribute_required(id, name)) {
|
||||
BKE_report(reports, RPT_ERROR, "Attribute is required and can't be removed");
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue