fix for crash with edit armature buttons when no bones were selected (uninitialized pointer)

This commit is contained in:
Campbell Barton
2011-07-15 23:55:20 +00:00
parent 729498ab2d
commit 4ca88c99be

View File

@@ -967,7 +967,7 @@ static void v3d_editarmature_buts(uiLayout *layout, Object *ob)
ebone= arm->act_edbone;
if (!ebone || (ebone->layer & arm->layer)==0) {
uiItemL(col, "Nothing selected", ICON_NONE);
uiItemL(layout, "Nothing selected", ICON_NONE);
return;
}
// row= uiLayoutRow(layout, 0);