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:
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
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue