Be more explicit about selecting shell

This commit is contained in:
Hanno Braun 2023-12-14 12:54:20 +01:00
parent 26833c0da5
commit bb9e8d4daa

View File

@ -22,7 +22,7 @@ pub fn model(
let cuboid = cuboid::model([size * 2., size, size], services);
cuboid
.update_shell(cuboid.shells().first(), |shell| {
.update_shell(cuboid.shells().only(), |shell| {
let bottom_face = shell.faces().first();
let offset = size / 2.;
let depth = size / 2.;