Suppress assert in debug mode.
This commit is contained in:
@@ -1033,7 +1033,7 @@ bool filelist_islibrary(struct FileList *filelist, char *dir, char *group)
|
||||
|
||||
static int groupname_to_code(const char *group)
|
||||
{
|
||||
char buf[32];
|
||||
char buf[BLO_GROUP_MAX];
|
||||
char *lslash;
|
||||
|
||||
BLI_strncpy(buf, group, sizeof(buf));
|
||||
@@ -1041,7 +1041,7 @@ static int groupname_to_code(const char *group)
|
||||
if (lslash)
|
||||
lslash[0] = '\0';
|
||||
|
||||
return BKE_idcode_from_name(buf);
|
||||
return buf[0] ? BKE_idcode_from_name(buf) : 0;
|
||||
}
|
||||
|
||||
void filelist_from_library(struct FileList *filelist)
|
||||
|
||||
Reference in New Issue
Block a user