diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 16:50:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 16:54:04 +0400 |
commit | 38e683cbb15e303cf68562b2183cc3082c346f8f (patch) | |
tree | 9db92e5b5a050797993b959a4bd186cd42ee83e8 /source/blender/bmesh/operators | |
parent | e9fb4299ebe94ddc5df93e90ec753bd3e0284f84 (diff) |
Fix T38217: Fix glitch adding Monkey with view align
added an option so view-align can default to a different axis.
Diffstat (limited to 'source/blender/bmesh/operators')
-rw-r--r-- | source/blender/bmesh/operators/bmo_primitive.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_primitive.c b/source/blender/bmesh/operators/bmo_primitive.c index 34e4efbe562..f0e31b78ca0 100644 --- a/source/blender/bmesh/operators/bmo_primitive.c +++ b/source/blender/bmesh/operators/bmo_primitive.c @@ -453,7 +453,10 @@ void bmo_create_monkey_exec(BMesh *bm, BMOperator *op) for (i = 0; i < monkeynv; i++) { float v[3]; - v[0] = (monkeyv[i][0] + 127) / 128.0, v[1] = monkeyv[i][1] / 128.0, v[2] = monkeyv[i][2] / 128.0; + /* rotate to face in the -Y axis */ + v[0] = (monkeyv[i][0] + 127) / 128.0; + v[2] = monkeyv[i][1] / 128.0; + v[1] = monkeyv[i][2] / -128.0; tv[i] = BM_vert_create(bm, v, NULL, BM_CREATE_NOP); BMO_elem_flag_enable(bm, tv[i], VERT_MARK); |