Snapping code checked for Hooks in object, but forgot to check first if
the Hook->parent existed. Crashed on 'empty' hooks.
This commit is contained in:
Ton Roosendaal 2005-04-12 11:53:46 +00:00
parent 5f237e67cc
commit 14fe1cb215

@ -715,7 +715,7 @@ static void update_select_dependency(void)
if(ob->hooks.first) {
ObHook *hook= ob->hooks.first;
while(hook) {
if(hook->parent->flag & SELECT) freedisplist(&ob->disp);
if(hook->parent && (hook->parent->flag & SELECT)) freedisplist(&ob->disp);
hook= hook->next;
}
}