Recalculate motherball when metaball is deleting

This commit is contained in:
2010-06-27 12:45:09 +00:00
parent 3262dfdadd
commit 650de24271
3 changed files with 18 additions and 7 deletions

View File

@@ -404,6 +404,9 @@ void unlink_object(Scene *scene, Object *ob)
if(pchan->custom==ob)
pchan->custom= NULL;
}
} else if(ELEM(OB_MBALL, ob->type, obt->type)) {
if(is_mball_basis_for(obt, ob))
obt->recalc|= OB_RECALC_DATA;
}
sca_remove_ob_poin(obt, ob);
@@ -536,13 +539,7 @@ void unlink_object(Scene *scene, Object *ob)
}
tex= tex->id.next;
}
/* mballs (scene==NULL when called from library.c) */
if(scene && ob->type==OB_MBALL) {
obt= find_basis_mball(scene, ob);
if(obt) freedisplist(&obt->disp);
}
/* worlds */
wrld= G.main->world.first;
while(wrld) {