Fix [#32260] 'Select Sharp Edges' works vice versa

We want to select edges sharpest than the given threshold, i.e. which faces’s angle is below the limit! Looks like BMesh switched this somehow...
This commit is contained in:
Bastien Montagne
2012-08-05 07:50:51 +00:00
parent a71fcd6a13
commit 9be74a514b

View File

@@ -2337,7 +2337,7 @@ static int edbm_select_sharp_edges_exec(bContext *C, wmOperator *op)
/* edge has exactly two neighboring faces, check angle */
angle = angle_normalized_v3v3(l1->f->no, l2->f->no);
if (fabsf(angle) > sharp) {
if (fabsf(angle) < sharp) {
BM_edge_select_set(em->bm, e, TRUE);
}