forked from bartvdbraak/blender
Bug fix #2438
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:
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user