Skip to content

There're scenarios in which morph targets is not zero but no weights in mesh #9863

@floppyhammer

Description

@floppyhammer

Bevy version

0.11.2

What you did

When I load some glTF files, Bevy fails to initialize MorphWeights properly because there's no weight data in the glTF json. However, MeshMorphWeights is good.

A glTF json example:

With weights
image

Without weights
image

What went wrong

Bevy should handle non-existing weights properly if there're morph targets.

Additional information

To be specific, the said glTF files are VRM files. Like this one https://hub.vroid.com/en/characters/2843975675147313744/models/5644550979324015604.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AnimationMake things move and change over timeA-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions