Fix T95738: wrong "Bottom" selection for cone without base

Original patch by @lone_noel with changes by me.

Differential Revision: https://developer.blender.org/D14102
This commit is contained in:
Jacques Lucke 2022-03-09 10:34:59 +01:00
parent 1f9d85f56a
commit 801d7b4921
Notes: blender-bot 2023-02-14 10:43:47 +01:00
Referenced by issue #95738, Cone node outputs wrong "Bottom" selection, when creating cone with no base fill
1 changed files with 4 additions and 4 deletions

View File

@ -510,11 +510,11 @@ static void calculate_selection_outputs(Mesh *mesh,
if (config.bottom_is_point) {
selection[config.last_vert] = true;
}
else if (face) {
selection.slice(config.bottom_faces_start, config.bottom_faces_len).fill(true);
}
else {
selection
.slice(config.bottom_faces_start,
face ? config.bottom_faces_len : config.circle_segments)
.fill(true);
selection.slice(config.last_ring_verts_start + 1, config.circle_segments).fill(true);
}
attribute.save();
}