Facepunch / sbox-issues

178 stars 12 forks source link

Bones / Attachments not working in modeldoc #51

Open Jake-Rich opened 3 years ago

Jake-Rich commented 3 years ago

Describe the bug

When using modeldoc to setup bones & attachment points, the compiled version will only update once per restart. To Reproduce

  1. Open model doc and setup some bones & attachment points
  2. Click compile
  3. You won't see the attachment points until you restart the entire game (not just model doc)
  4. In-game your attachments are still using the old compiled version and won't be reflected in code either.
  5. Restart sandbox (not just modeldoc) and the attachment points will show correctly in the compiled version.

Expected behavior

Compiled output is updated when you update the attachments / bones and recompile the model.

Screenshots

Two attachments in source side but still 4 on compiled side after compiling image image

Additional context

The names of attachment points nor the points themselves will update.

Jake-Rich commented 3 years ago

It seems that the bug might be as simple as "attachment points don't update until sandbox is completely restarted" but the symptoms seemed much weirder as we were renaming joints and changing multiple things at once. I updated the issue to reflect the changes.

aylaylay commented 3 years ago

I could be wrong but it could be due to the recent asset path changes because model hotloading used to be perfect, now I've noticed slight problems