Merge branch 'blender-v2.92-release'

This commit is contained in:
2021-02-12 00:42:36 +11:00
3 changed files with 35 additions and 0 deletions

View File

@@ -4272,6 +4272,18 @@ bool CustomData_layertype_is_singleton(int type)
return typeInfo->defaultname == NULL;
}
/**
* Has dynamically allocated members.
* This is useful to know if operations such as #memcmp are
* valid when comparing data from two layers.
*/
bool CustomData_layertype_is_dynamic(int type)
{
const LayerTypeInfo *typeInfo = layerType_getInfo(type);
return (typeInfo->free != NULL);
}
/**
* \return Maximum number of layers of given \a type, -1 means 'no limit'.
*/