Bugfix: crash in posemode transform buttons with no active pose bone.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user