diff options
author | Ton Roosendaal <ton@blender.org> | 2005-04-12 15:53:46 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-04-12 15:53:46 +0400 |
commit | 14fe1cb2155f46d5238de0e97124ed4a04bed77d (patch) | |
tree | 1ed160ad9fe7dd28173ddefcf30332e93e2433e4 /source/blender/src/edit.c | |
parent | 5f237e67cc8cdd829ec53bdd228050086251e123 (diff) |
Bug fix #2438
Snapping code checked for Hooks in object, but forgot to check first if
the Hook->parent existed. Crashed on 'empty' hooks.
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r-- | source/blender/src/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index fdcdf2401c1..fb3536b2939 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -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; } } |