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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-02-02 19:30:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-02 19:33:17 +0300
commit6bbe59fab1945ddedb7328b278821f0de2337137 (patch)
tree7e1f03dfdbb8a853f3a91eff46969b1b2c79174a /source/blender/editors/space_view3d/drawarmature.c
parent2b445b83fe0ac8eb4ca0e8a1444bde73ff3b50b3 (diff)
Fix T46933: Bone axes letters may not be visible
Now axis letters are view aligned.
Diffstat (limited to 'source/blender/editors/space_view3d/drawarmature.c')
-rw-r--r--source/blender/editors/space_view3d/drawarmature.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c
index cf77a79c92c..ff587243d3c 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -2077,7 +2077,10 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
glMultMatrixf(bmat);
glColor3ubv(col);
- drawaxes(pchan->bone->length * 0.25f, OB_ARROWS);
+
+ float viewmat_pchan[4][4];
+ mul_m4_m4m4(viewmat_pchan, rv3d->viewmatob, bmat);
+ drawaxes(viewmat_pchan, pchan->bone->length * 0.25f, OB_ARROWS);
glPopMatrix();
}
@@ -2285,7 +2288,10 @@ static void draw_ebones(View3D *v3d, ARegion *ar, Object *ob, const short dt)
glMultMatrixf(bmat);
glColor3ubv(col);
- drawaxes(eBone->length * 0.25f, OB_ARROWS);
+
+ float viewmat_ebone[4][4];
+ mul_m4_m4m4(viewmat_ebone, rv3d->viewmatob, bmat);
+ drawaxes(viewmat_ebone, eBone->length * 0.25f, OB_ARROWS);
glPopMatrix();
}