Skip to content

Commit 7d19571

Browse files
committed
feat: initially 2d is now working...
1 parent 22cfb58 commit 7d19571

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,23 +249,23 @@ pub fn init_shapes(
249249
major_radius: 2.,
250250
minor_radius: 0.2,
251251
}))),
252-
MeshMaterial3d(mat.clone()),
252+
MeshMaterial3d(mat.clone_weak()),
253253
Transform::from_xyz(0.0, 0.0, 0.0),
254254
Shape,
255255
));
256256

257257
shape_options.0.push((
258258
true,
259259
Mesh3d(meshes.add(Mesh::from(Cuboid::new(1.85, 1.85, 1.85)))),
260-
MeshMaterial3d(mat.clone()),
260+
MeshMaterial3d(mat.clone_weak()),
261261
Transform::from_xyz(0.0, 0.3, 0.0),
262262
Shape,
263263
));
264264

265265
shape_options.0.push((
266266
false,
267267
Mesh3d(meshes.add(Sphere { radius: 1.40 })),
268-
MeshMaterial3d(mat.clone()),
268+
MeshMaterial3d(mat.clone_weak()),
269269
Transform::from_xyz(0.0, 0.3, 0.0),
270270
Shape,
271271
));

0 commit comments

Comments
 (0)