screw tool used uninitialized normal to detect flipping direction.

lookes like bug from bmesh merge, restored from 2.4x.
This commit is contained in:
Campbell Barton
2013-09-08 22:52:48 +00:00
parent 108a4c41c4
commit fdce634310

View File

@@ -836,6 +836,8 @@ static int edbm_screw_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
copy_v3_v3(nor, obedit->obmat[2]);
/* calculate dvec */
mul_v3_m4v3(v1_co_global, obedit->obmat, v1->co);
mul_v3_m4v3(v2_co_global, obedit->obmat, v2->co);