We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22cfb58 commit 7d19571Copy full SHA for 7d19571
src/utils.rs
@@ -249,23 +249,23 @@ pub fn init_shapes(
249
major_radius: 2.,
250
minor_radius: 0.2,
251
}))),
252
- MeshMaterial3d(mat.clone()),
+ MeshMaterial3d(mat.clone_weak()),
253
Transform::from_xyz(0.0, 0.0, 0.0),
254
Shape,
255
));
256
257
shape_options.0.push((
258
true,
259
Mesh3d(meshes.add(Mesh::from(Cuboid::new(1.85, 1.85, 1.85)))),
260
261
Transform::from_xyz(0.0, 0.3, 0.0),
262
263
264
265
266
false,
267
Mesh3d(meshes.add(Sphere { radius: 1.40 })),
268
269
270
271
0 commit comments