Skip to content

Updated to Bevy 0.19. - #171

Closed
Cyannide wants to merge 1 commit into
djeedai:mainfrom
Cyannide:bevy-0.19
Closed

Updated to Bevy 0.19.#171
Cyannide wants to merge 1 commit into
djeedai:mainfrom
Cyannide:bevy-0.19

Conversation

@Cyannide

Copy link
Copy Markdown

The fix that needs a review is the change detection for Assets especially to make colormaterial_color functional.

The fix that needs a review is the change detection for Assets especially to make colormaterial_color functional.
@Cyannide

Copy link
Copy Markdown
Author

#170 the colormaterial_color example will not work because there is no AssetEvent::Modified triggered to push the material update to the GPU.

@Cyannide

Copy link
Copy Markdown
Author

Also fixes #169

Comment thread src/lib.rs
else {
world.resource_scope::<Assets<A>, _>(|world, mut assets: Mut<Assets<A>>| {
// get_mut with into_inner() triggers AssetEvent::Modified
// essential for the render pipeline to re-upload to GPU

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.

Essential but completely breaking the design which carefully avoids marking assets as changed all the way through to Lens::lerp(). This change unconditionally marks the asset modified, whether or not it's actually animated. See my fix on #170.

@djeedai djeedai closed this Jun 28, 2026
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.

2 participants