diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-16 13:02:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-16 13:02:31 +0400 |
commit | 8ca82cec46944da31302616306d57931e3a04e86 (patch) | |
tree | ffa8abbad44b66a547a176e7e1064292b4fabd89 /source | |
parent | 2222f536f81210b557f62a5ea037aa9fa7f4e98b (diff) |
correction for my fix for [#28668], would crash when there were no editbones.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index fc8757899b9..0a1f7a3599d 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -769,7 +769,7 @@ static void outliner_add_id_contents(SpaceOops *soops, TreeElement *te, TreeStor ebone->temp= ten; } /* make hierarchy */ - ten= ((EditBone *)arm->edbo->first)->temp; + ten= arm->edbo->first ? ((EditBone *)arm->edbo->first)->temp : NULL; while(ten) { TreeElement *nten= ten->next, *par; ebone= (EditBone *)ten->directdata; |