diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-22 18:55:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-22 18:55:12 +0400 |
commit | df83ce61bc324115faa7c8b55e17fccbde071191 (patch) | |
tree | 2aa53cc288d1efa60df847a0102d4ed6e84d2da0 | |
parent | edab2e4b3d44f193441e480a06d4d009d006b40d (diff) |
fix 2 small bugs
* Ctrl+Click extrude wasnt normalizing the quaternion (was printing warnings)
* bmesh bevel was supposed to add a float layer and remove, but removing passed the mask define of the customdata layer.
-rw-r--r-- | source/blender/editors/mesh/bmesh_tools.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/bmesh_tools.c b/source/blender/editors/mesh/bmesh_tools.c index aa5b092322e..ba34eb40fa3 100644 --- a/source/blender/editors/mesh/bmesh_tools.c +++ b/source/blender/editors/mesh/bmesh_tools.c @@ -824,6 +824,7 @@ static int dupli_extrude_cursor(bContext *C, wmOperator *op, wmEvent *event) q1[1] = cross[0] * si; q1[2] = cross[1] * si; q1[3] = cross[2] * si; + normalize_qt(q1); quat_to_mat3(mat, q1); } } @@ -4519,7 +4520,7 @@ static int mesh_bevel_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } - BM_data_layer_free_n(em->bm, &em->bm->edata, CD_MASK_PROP_FLT, li); + BM_data_layer_free_n(em->bm, &em->bm->edata, CD_PROP_FLT, li); MEM_freeN(w); |