Skip to content

Commit b75229d

Browse files
committed
use BufferUsages::UNIFORM instead of the implicit BufferUsages::all() due to the Default derive
1 parent 3a93b67 commit b75229d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/bevy_pbr/src/render/mesh.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,11 +715,18 @@ pub fn queue_mesh_bind_group(
715715
// ignoring the rest, whether they're valid for other dynamic offsets or not. This trick may
716716
// be supported later in encase, and then we should make use of it.
717717

718-
#[derive(Default)]
719718
pub struct SkinnedMeshUniform {
720719
pub buffer: BufferVec<Mat4>,
721720
}
722721

722+
impl Default for SkinnedMeshUniform {
723+
fn default() -> Self {
724+
Self {
725+
buffer: BufferVec::new(BufferUsages::UNIFORM),
726+
}
727+
}
728+
}
729+
723730
pub fn prepare_skinned_meshes(
724731
render_device: Res<RenderDevice>,
725732
render_queue: Res<RenderQueue>,

0 commit comments

Comments
 (0)