forked from bartvdbraak/blender
Modified the multires loading code so that it always checks for a NULL edge flag array.
This commit is contained in:
parent
59e44e4afa
commit
b6264c6b0a
@ -2538,7 +2538,8 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh)
|
||||
|
||||
if(mesh->mr->edge_flags)
|
||||
mesh->mr->edge_flags= newdataadr(fd, mesh->mr->edge_flags);
|
||||
else
|
||||
|
||||
if(!mesh->mr->edge_flags)
|
||||
mesh->mr->edge_flags= MEM_callocN(sizeof(short)*lvl->totedge, "Multires Edge Flags");
|
||||
|
||||
for(; lvl; lvl= lvl->next) {
|
||||
|
Loading…
Reference in New Issue
Block a user