Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-11-07 00:41:07 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-11-07 00:41:07 +0300
commitf21d0bacf7ae3e1efd0a88f174edc152b8a4ce6c (patch)
treefa6ee7a62187b1b3abb7f62b9a0342bbb1f948a7 /source
parent0b027b40971a48efa7486568922f8ed9afc53d75 (diff)
Bugfix: crash in posemode transform buttons with no active pose bone.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_buttons.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index 8c0eff49020..12adfced5c2 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -592,6 +592,11 @@ static void v3d_posearmature_buts(uiLayout *layout, View3D *v3d, Object *ob, flo
}
// row= uiLayoutRow(layout, 0);
+ if (!pchan) {
+ uiItemL(layout, "No Bone Active", 0);
+ return;
+ }
+
RNA_pointer_create(&ob->id, &RNA_PoseChannel, pchan, &pchanptr);
col= uiLayoutColumn(layout, 0);