Skip to content

Commit

Permalink
Fix query_gltf_primitives example (bevyengine#15715)
Browse files Browse the repository at this point in the history
This example was missed during the port to required components for
meshes and materials.
Easy fix, I checked that it works as it did in the PR that added the
example (bevyengine#13912).
  • Loading branch information
tim-blackbird authored Oct 7, 2024
1 parent 9b863be commit 0c959f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/3d/query_gltf_primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ fn find_top_material_and_mesh(
mut materials: ResMut<Assets<StandardMaterial>>,
mut meshes: ResMut<Assets<Mesh>>,
time: Res<Time>,
mat_query: Query<(&Handle<StandardMaterial>, &Handle<Mesh>, &GltfMaterialName)>,
mat_query: Query<(
&MeshMaterial3d<StandardMaterial>,
&Mesh3d,
&GltfMaterialName,
)>,
) {
for (mat_handle, mesh_handle, name) in mat_query.iter() {
// locate a material by material name
Expand Down

0 comments on commit 0c959f7

Please sign in to comment.