Fix crash loading modifiers with missing IDs

Was very visible with barcelona file from Cycles benchmark repository.
This commit is contained in:
Sergey Sharybin 2015-10-08 21:06:09 +05:00
parent 216f1916a2
commit fd2bdc07ca
1 changed files with 1 additions and 1 deletions

View File

@ -4596,7 +4596,7 @@ static void lib_link_modifiers__linkModifiers(
FileData *fd = userData;
*idpoin = newlibadr(fd, ob->id.lib, *idpoin);
if (cd_flag & IDWALK_USER) {
if (*idpoin != NULL && (cd_flag & IDWALK_USER) != 0) {
(*idpoin)->us++;
}
}