diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-21 02:27:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-21 02:30:51 +0300 |
commit | 91e8509467415f22f1812a63baef439454d80990 (patch) | |
tree | 7c480ac58b5bc89d7ace04b37f2e704758f4b689 /source/blender/modifiers | |
parent | 19875439b5fb2b7c569bc95f384b5be548a5e45f (diff) |
Cleanup: use boolean array for mirror modifier
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mirror.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/modifiers/intern/MOD_mirror.c b/source/blender/modifiers/intern/MOD_mirror.c index df08122aebf..659ac0dee30 100644 --- a/source/blender/modifiers/intern/MOD_mirror.c +++ b/source/blender/modifiers/intern/MOD_mirror.c @@ -88,10 +88,10 @@ static Mesh *doBiscetOnMirrorPlane( int axis, float mirrormat[4][4]) { - bool do_flip_axis = ( - (axis == 0 && mmd->flag & MOD_MIR_FLIP_AXIS_X) || - (axis == 1 && mmd->flag & MOD_MIR_FLIP_AXIS_Y) || - (axis == 2 && mmd->flag & MOD_MIR_FLIP_AXIS_Z)); + bool do_bisect_flip_axis = ( + (axis == 0 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_X) || + (axis == 1 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_Y) || + (axis == 2 && mmd->flag & MOD_MIR_BISECT_FLIP_AXIS_Z)); const float bisect_distance = 0.001; @@ -132,7 +132,7 @@ static Mesh *doBiscetOnMirrorPlane( copy_v3_v3(plane_offset, plane); plane_offset[3] = plane[3] - bisect_distance; - if (do_flip_axis) { + if (do_bisect_flip_axis) { negate_v3(plane_offset); } |