diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-04 23:37:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-04 23:37:18 +0400 |
commit | c630435b3cb95a476b528f2c0f9f70c846a6c00b (patch) | |
tree | 60e11e4d94de3ef7f7a7c1661bba208f729759a3 /source/blender/bmesh/operators/bmo_fill_grid.c | |
parent | d1e78aa75da6c3b23af86d6a5609966470e49ad2 (diff) |
fix own error with removing vertex weights not checking for non-existing weights.
however this exposed some other odd behavior.
removing a vertex group would add one if not found but only for meshes, not lattices.
now just skip removal if not found.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_fill_grid.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_fill_grid.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/bmesh/operators/bmo_fill_grid.c b/source/blender/bmesh/operators/bmo_fill_grid.c index 3d865f70ccb..7d4b780baf5 100644 --- a/source/blender/bmesh/operators/bmo_fill_grid.c +++ b/source/blender/bmesh/operators/bmo_fill_grid.c @@ -64,15 +64,15 @@ static void quad_edges_to_normal( static void quad_verts_to_barycentric_tri( float tri[3][3], - float co_a[3], - float co_b[3], + const float co_a[3], + const float co_b[3], - float co_a_next[3], - float co_b_next[3], + const float co_a_next[3], + const float co_b_next[3], - float co_a_prev[3], - float co_b_prev[3], - bool is_flip + const float co_a_prev[3], + const float co_b_prev[3], + const bool is_flip ) { float no[3]; |