Facepunch / sbox-issues

175 stars 12 forks source link

Morphs explode if there is morphs for different mesh components in the same file #5971

Closed ShadowBrian closed 1 week ago

ShadowBrian commented 3 months ago

Describe the bug

Morphs explode if there is morphs for different mesh components in the same file sbox-dev_kjbeKLyv7G

To Reproduce

Here's a project with reproduction of the issue as well as what I did to work around it: morph_fuckup_repro.zip

Expected behavior

I would hope I can just have morphs for separate mesh elements in the same file and have them apply correctly, seems to be fucked in scene while looking fine in modeldoc so I know this setup should be possible.

Media/Files

No response

Additional context

No response

aylaylay commented 3 months ago

I'm not sure if this has anything to do with morphs

aylaylay commented 1 week ago

It seems the one with morphs gets rid of the skeleton above the neck, causing the head to be skinned to root (pelvis) I need to find out if this is something the importer is discarding or a fuck up in your exporter.

Image

aylaylay commented 1 week ago

Skinning weights seem to get fucked up around the head

aylaylay commented 1 week ago

Okay yeah loading the morphs are somehow fucking up the skinning, this might take a while to figure out

aylaylay commented 1 week ago

Fixed

Image

ShadowBrian commented 1 week ago

Thank you layla very cool!