Skip to content

chore: bevy 0.17.0 - #285

Closed
fundon wants to merge 3 commits into
rparrett:masterfrom
pindash-io:bevy-0.17
Closed

fundon wants to merge 3 commits into
rparrett:masterfrom
pindash-io:bevy-0.17

Conversation

@fundon

@fundon fundon commented Aug 7, 2025 •

Copy link
Copy Markdown
Contributor

Upgrade to bevy 0.17.0

@francisdb

francisdb commented Oct 17, 2025 •

Copy link
Copy Markdown

@Nilirad can the CI workflow be approved please?

Comment thread src/plugin.rs
},
);
) {
error!("Failed to add resource: {:?}", e);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error message is inaccurate, the error is coming from insert on Assets.

The docs mention that this method will not fail for uuid assets, so the error could be safely ignored.

Although it might be appropriate to use the fallible version of resource_mut. I think this could be missing if a user fails to add rendering features/plugins.

if let Some(mut materials) = app.world_mut().get_resource_mut::<Assets<ColorMaterial>>() {
    // `insert` will not fail for uuid assets
    let _ = materials.insert(
        &COLOR_MATERIAL_HANDLE,
        ColorMaterial {
            color: Color::WHITE,
            ..default()
        },
    );
} else {
    error!("Failed to get Assets<ColorMaterial> resource");
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the code compiling without errors for you?

@rparrett rparrett Oct 17, 2025 •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you referencing the error you commented about earlier, or something about this particular review feedback?

I suppose either way, the answer is yes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never mind, seems to have fixed itself

Comment thread src/plugin.rs
Comment on lines +81 to +85
let m = build_mesh(&buffers);
if let (Some(mut aabb), Some(new_aabb)) = (aabb, m.compute_aabb()) {
*aabb = new_aabb;
}
mesh.0 = meshes.add(m);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fixing or working around a bug that's documented somewhere? I'm surprised that modern Bevy isn't automatically recomputing the Aabb.

@rparrett rparrett mentioned this pull request Oct 17, 2025
@rparrett

Copy link
Copy Markdown
Owner

I did this over in #292, but please feel free to open a PR/issue for the Aabb thing.

pull Bot pushed a commit to age-rs/bevy_prototype_lyon that referenced this pull request Oct 18, 2025
Closes rparrett#284
Closes rparrett#285

Re-implemented on top of the `bevy_prototype_lyon` 0.14 changes with the
suggestions from rparrett#285 code review and an additional fix for CI.

Co-authored-by: Fangdun Tsai <fundon@pindash.io>
@fundon

fundon commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor Author

Sorry, I was hiking last week.
Good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants