correction for my fix for [#28668], would crash when there were no editbones.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 16 Sep 2011 09:02:31 +0000 (09:02 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 16 Sep 2011 09:02:31 +0000 (09:02 +0000)
source/blender/editors/space_outliner/outliner_tree.c

index fc87578..0a1f7a3 100644 (file)
@@ -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;