diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-09 12:34:59 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-09 12:34:59 +0300 |
commit | 801d7b4921dce55d1fb0d2989935408db1e1691e (patch) | |
tree | 54bae90feee08fc5a59706517e58a24f13a3a96b /source/blender/nodes | |
parent | 1f9d85f56aace91e7958566c446e079b7f1c21c6 (diff) |
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
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc index d84a2e73172..b882d4bdf09 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc @@ -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(); } |