diff options
author | Ton Roosendaal <ton@blender.org> | 2010-11-15 14:45:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-11-15 14:45:54 +0300 |
commit | ccf1f08f378db5f39e2ac1a3208e36998af56268 (patch) | |
tree | 92e41a9d8a4369818bd470997f03a28849e043c8 /source/blender/editors/space_view3d/drawarmature.c | |
parent | fd30c383dc74942373395738779ddc432bb70174 (diff) |
Bugfix (IRC report)
Bone drawing code failed to check the correnct parent pointer, causing
NULL pointer to be read. Thanks Wahooney!
Diffstat (limited to 'source/blender/editors/space_view3d/drawarmature.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawarmature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c index 8cfb11478be..e65751e1f9d 100644 --- a/source/blender/editors/space_view3d/drawarmature.c +++ b/source/blender/editors/space_view3d/drawarmature.c @@ -1772,7 +1772,7 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base, if ((bone) && !(bone->flag & (BONE_HIDDEN_P|BONE_HIDDEN_PG))) { if (bone->layer & arm->layer) { - if ((do_dashed & 1) && (bone->parent)) { + if ((do_dashed & 1) && (pchan->parent)) { /* Draw a line from our root to the parent's tip * - only if V3D_HIDE_HELPLINES is enabled... */ |