fix for crash with edit armature buttons when no bones were selected (uninitialized pointer)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user