Modified the multires loading code so that it always checks for a NULL edge flag array.

This commit is contained in:
Nicholas Bishop 2007-01-03 07:21:04 +00:00
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) {