Skip to content

Missing bones cause files to be unreadable externally #873

Description

@RavenTheSergal

Describe the bug 💬

I am exporting an unpacked prefab that has a missing bone or two.
what i expect to happen is the group with a missing bone will be ignored, and the model will export normally.
instead what happens is the missing bone is replaced with the next in the list, causing 2 issues.

  1. in unity, the order of the bones is now incorrect, scrambling the parts.
  2. other applications, like blender, cannot read the file due to an index mismatch

Steps to reproduce 🔢

  1. use any rigged model
  2. unpack the file
  3. delete a bone
  4. export

done, it should be messed up.

Files to reproduce the issue ♻

personal files unnecessary, i went and tested with several assets, all with the same result.

Editor Version 🎲

2022.3

Render Pipeline and version

Built in render pipeline

UnityGLTF Version

latest

Operating System 👩‍💻

Windows

When does this problem happen?

  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export

Additional Info 📜

No response

Validations 🩹

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions