diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-21 13:10:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-21 13:10:08 +0400 |
commit | d76c05cd3655887ca48698b9081e959640711697 (patch) | |
tree | ad7b05b4b5af21179e244bbad62b11bbf9b9e3ec /source/blender/bmesh/operators/bmo_dupe.c | |
parent | 112ef144220e414827d9a57a81ddf27fa33804e1 (diff) |
style cleanup: bmesh
Diffstat (limited to 'source/blender/bmesh/operators/bmo_dupe.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_dupe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/bmesh/operators/bmo_dupe.c b/source/blender/bmesh/operators/bmo_dupe.c index bb5f090431b..9a87acbb84f 100644 --- a/source/blender/bmesh/operators/bmo_dupe.c +++ b/source/blender/bmesh/operators/bmo_dupe.c @@ -486,11 +486,12 @@ void bmo_spin_exec(BMesh *bm, BMOperator *op) phi = BMO_slot_float_get(op, "ang") * (float)M_PI / (360.0f * steps); do_dupli = BMO_slot_bool_get(op, "do_dupli"); + /* BMESH_TODO - can replace this with BLI_math? */ si = (float)sin(phi); q[0] = (float)cos(phi); - q[1] = axis[0]*si; - q[2] = axis[1]*si; - q[3] = axis[2]*si; + q[1] = axis[0] * si; + q[2] = axis[1] * si; + q[3] = axis[2] * si; quat_to_mat3(rmat, q); BMO_slot_copy(op, op, "geom", "lastout"); |