Revision: 40257
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40257
Author:   campbellbarton
Date:     2011-09-16 09:02:31 +0000 (Fri, 16 Sep 2011)
Log Message:
-----------
correction for my fix for [#28668], would crash when there were no editbones.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner_tree.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner_tree.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner_tree.c 
2011-09-16 08:32:46 UTC (rev 40256)
+++ trunk/blender/source/blender/editors/space_outliner/outliner_tree.c 
2011-09-16 09:02:31 UTC (rev 40257)
@@ -769,7 +769,7 @@
                                        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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to