forked from bartvdbraak/blender
fix for using uninitialized boolean vars for mask select more/less
This commit is contained in:
parent
0398ef6ae0
commit
34aa68f299
@ -809,8 +809,9 @@ static int mask_select_more_less(bContext *C, bool more)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (spline = masklay->splines.first; spline; spline = spline->next) {
|
for (spline = masklay->splines.first; spline; spline = spline->next) {
|
||||||
|
const bool cyclic = (spline->flag & MASK_SPLINE_CYCLIC) != 0;
|
||||||
|
bool start_sel, end_sel, prev_sel, cur_sel;
|
||||||
int i;
|
int i;
|
||||||
bool start_sel, end_sel, prev_sel, cur_sel, cyclic = spline->flag & MASK_SPLINE_CYCLIC;
|
|
||||||
|
|
||||||
/* reselect point if any handle is selected to make the result more predictable */
|
/* reselect point if any handle is selected to make the result more predictable */
|
||||||
for (i = 0; i < spline->tot_point; i++) {
|
for (i = 0; i < spline->tot_point; i++) {
|
||||||
@ -826,6 +827,10 @@ static int mask_select_more_less(bContext *C, bool more)
|
|||||||
start_sel = !!MASKPOINT_ISSEL_KNOT(spline->points);
|
start_sel = !!MASKPOINT_ISSEL_KNOT(spline->points);
|
||||||
end_sel = !!MASKPOINT_ISSEL_KNOT(&spline->points[spline->tot_point - 1]);
|
end_sel = !!MASKPOINT_ISSEL_KNOT(&spline->points[spline->tot_point - 1]);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
start_sel = false;
|
||||||
|
end_sel = false;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < spline->tot_point; i++) {
|
for (i = 0; i < spline->tot_point; i++) {
|
||||||
if (i == 0 && !cyclic) {
|
if (i == 0 && !cyclic) {
|
||||||
|
@ -127,6 +127,8 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
|||||||
}
|
}
|
||||||
calc_face_normal = true;
|
calc_face_normal = true;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return dm;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dmd->face_count <= 3) {
|
if (dmd->face_count <= 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user