Bugfix: crash in posemode transform buttons with no active pose bone.

This commit is contained in:
2009-11-06 21:41:07 +00:00
parent 0b027b4097
commit f21d0bacf7

View File

@@ -592,6 +592,11 @@ static void v3d_posearmature_buts(uiLayout *layout, View3D *v3d, Object *ob, flo
} }
// row= uiLayoutRow(layout, 0); // row= uiLayoutRow(layout, 0);
if (!pchan) {
uiItemL(layout, "No Bone Active", 0);
return;
}
RNA_pointer_create(&ob->id, &RNA_PoseChannel, pchan, &pchanptr); RNA_pointer_create(&ob->id, &RNA_PoseChannel, pchan, &pchanptr);
col= uiLayoutColumn(layout, 0); col= uiLayoutColumn(layout, 0);