diff options
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_smart_stitch.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_smart_stitch.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/source/blender/editors/uvedit/uvedit_smart_stitch.c b/source/blender/editors/uvedit/uvedit_smart_stitch.c index d8a66979565..630b601b69d 100644 --- a/source/blender/editors/uvedit/uvedit_smart_stitch.c +++ b/source/blender/editors/uvedit/uvedit_smart_stitch.c @@ -1257,7 +1257,7 @@ static int stitch_process_data(StitchState *state, Scene *scene, int final) UvEdge *edge = state->edges + i; if ((edge->flag & STITCH_BOUNDARY) && (state->uvs[edge->uv1]->flag & STITCH_STITCHABLE) && (state->uvs[edge->uv2]->flag & STITCH_STITCHABLE)) { stitch_island_calculate_edge_rotation(edge, state, final_position, uvfinal_map, island_stitch_data); - island_stitch_data[state->uvs[edge->uv1]->island].use_edge_rotation = TRUE; + island_stitch_data[state->uvs[edge->uv1]->island].use_edge_rotation = true; } } @@ -1305,7 +1305,7 @@ static int stitch_process_data(StitchState *state, Scene *scene, int final) if (edge->flag & STITCH_STITCHABLE) { stitch_island_calculate_edge_rotation(edge, state, final_position, NULL, island_stitch_data); - island_stitch_data[state->uvs[edge->uv1]->island].use_edge_rotation = TRUE; + island_stitch_data[state->uvs[edge->uv1]->island].use_edge_rotation = true; } } @@ -1456,7 +1456,7 @@ static void stitch_switch_selection_mode(StitchState *state) UvElement *element2 = state->uvs[edge->uv2]; if ((element1->flag & STITCH_SELECTED) && (element2->flag & STITCH_SELECTED)) - stitch_select_edge(edge, state, TRUE); + stitch_select_edge(edge, state, true); } /* unselect selected uvelements */ @@ -1477,8 +1477,8 @@ static void stitch_switch_selection_mode(StitchState *state) UvElement *element1 = state->uvs[edge->uv1]; UvElement *element2 = state->uvs[edge->uv2]; - stitch_select_uv(element1, state, TRUE); - stitch_select_uv(element2, state, TRUE); + stitch_select_uv(element1, state, true); + stitch_select_uv(element2, state, true); edge->flag &= ~STITCH_SELECTED; } @@ -1857,7 +1857,7 @@ static int stitch_init(bContext *C, wmOperator *op) edge = BLI_ghash_lookup(edge_hash, &tmp_edge); - stitch_select_edge(edge, state, TRUE); + stitch_select_edge(edge, state, true); } RNA_END; } @@ -1897,7 +1897,7 @@ static int stitch_init(bContext *C, wmOperator *op) if (uvedit_edge_select_test(scene, l, cd_loop_uv_offset)) { UvEdge *edge = uv_edge_get(l, state); if (edge) { - stitch_select_edge(edge, state, TRUE); + stitch_select_edge(edge, state, true); } } } @@ -1921,7 +1921,7 @@ static int stitch_init(bContext *C, wmOperator *op) } } - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { state_delete(state); return 0; @@ -2043,7 +2043,7 @@ static void stitch_select(bContext *C, Scene *scene, const wmEvent *event, Stitc /* This works due to setting of tmp in find nearest uv vert */ UvElement *element = BM_uv_element_get(state->element_map, hit.efa, hit.l); - stitch_select_uv(element, state, FALSE); + stitch_select_uv(element, state, false); } } @@ -2052,7 +2052,7 @@ static void stitch_select(bContext *C, Scene *scene, const wmEvent *event, Stitc if (hit.efa) { UvEdge *edge = uv_edge_get(hit.l, state); - stitch_select_edge(edge, state, FALSE); + stitch_select_edge(edge, state, false); } } } @@ -2078,7 +2078,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) if (event->val == KM_PRESS) { stitch_select(C, scene, event, state); - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2088,7 +2088,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) case PADENTER: case RETKEY: if (event->val == KM_PRESS) { - if (stitch_process_data(state, scene, TRUE)) { + if (stitch_process_data(state, scene, true)) { stitch_exit(C, op, 1); return OPERATOR_FINISHED; } @@ -2105,7 +2105,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) case WHEELUPMOUSE: if (event->val == KM_PRESS && event->alt) { state->limit_dist += 0.01f; - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2120,7 +2120,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) if (event->val == KM_PRESS && event->alt) { state->limit_dist -= 0.01f; state->limit_dist = MAX2(0.01f, state->limit_dist); - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2134,7 +2134,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) case LKEY: if (event->val == KM_PRESS) { state->use_limit = !state->use_limit; - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2147,7 +2147,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) state->static_island++; state->static_island %= state->element_map->totalIslands; - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2158,7 +2158,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) case MKEY: if (event->val == KM_PRESS) { state->midpoints = !state->midpoints; - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2174,7 +2174,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) if (event->val == KM_PRESS && !(U.flag & USER_LMOUSESELECT)) { stitch_select(C, scene, event, state); - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2186,7 +2186,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) case SKEY: if (event->val == KM_PRESS) { state->snap_islands = !state->snap_islands; - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2201,7 +2201,7 @@ static int stitch_modal(bContext *C, wmOperator *op, const wmEvent *event) if (event->val == KM_PRESS) { stitch_switch_selection_mode(state); - if (!stitch_process_data(state, scene, FALSE)) { + if (!stitch_process_data(state, scene, false)) { stitch_cancel(C, op); return OPERATOR_CANCELLED; } |