Fix build failure on Windows + wrong buffer size
Was using `NAME_MAX` which is defined in `limits.h`, which again may be implicitly included by the compiler. Intend was to use the Blender define `MAX_NAME`.
This commit is contained in:
parent
9d9f205dc4
commit
45a312fd8f
|
@ -53,7 +53,7 @@ static std::string catalog_name_ensure_unique(AssetCatalogService &catalog_servi
|
|||
{
|
||||
CatalogUniqueNameFnData fn_data = {catalog_service, parent_path};
|
||||
|
||||
char unique_name[NAME_MAX] = "";
|
||||
char unique_name[MAX_NAME] = "";
|
||||
BLI_uniquename_cb(
|
||||
catalog_name_exists_fn, &fn_data, name.c_str(), '.', unique_name, sizeof(unique_name));
|
||||
|
||||
|
|
Loading…
Reference in New Issue