Skip to content

Remove false positive error log for morph targets#24407

Open
kristoff3r wants to merge 1 commit into
bevyengine:mainfrom
kristoff3r:ks/morph-log
Open

Remove false positive error log for morph targets#24407
kristoff3r wants to merge 1 commit into
bevyengine:mainfrom
kristoff3r:ks/morph-log

Conversation

@kristoff3r
Copy link
Copy Markdown
Contributor

Objective

When mesh assets are prepared, an image is allocated only if the mesh has any morph targets. When unloading the asset an error log is always printed if that image cannot be found, even if it was never allocated. This leads to a bunch of error messages that aren't actionable.

Solution

Remove the error log, as we don't have enough bookkeeping to output it correctly.

Testing

None

@kristoff3r kristoff3r added D-Trivial Nice and easy! A great choice to get started with Bevy A-Diagnostics Logging, crash handling, error reporting and performance analysis labels May 23, 2026
@kristoff3r kristoff3r added this to the 0.19 milestone May 23, 2026
@kristoff3r kristoff3r added C-Usability A targeted quality-of-life change that makes Bevy easier to use and removed C-Usability A targeted quality-of-life change that makes Bevy easier to use labels May 23, 2026
Copy link
Copy Markdown
Contributor

@greeble-dev greeble-dev left a comment

Choose a reason for hiding this comment

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

From a glance I think it would be possible to change the RenderAsset API so that RenderMesh::unload_asset does have access to RenderMesh::morph_targets? But seems reasonable to do a quick fix for 0.19.

@greeble-dev greeble-dev added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Diagnostics Logging, crash handling, error reporting and performance analysis D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants