Commit Graph

10 Commits

Author SHA1 Message Date
bd_
250e8be54c fix: improve build performance by ~10x
CreateAsset, as it turns out, can be extremely slow, particularly when used on Mesh objects.
By adding our generated objects as sub-objects of a container AnimatorController, we can
minimize this overhead.
2023-01-05 21:30:44 +09:00
bd_
1635b988a9
feat: improved merge armature implementation (#174)
This branch rewrites the merge armature logic to be both simpler and more reliable. In particular, all components in the merged armature will always be moved into the target armature, eliminating the need for complex and unreliable constraint adjustments. I also rewrite the path remapping logic to be more reliable by tracking actual GameObjects, rather than string paths.

This change fixes a number of constraint-heavy outfits, including:

* https://cloudz.booth.pm/items/3751948
* https://capettiya.booth.pm/items/4424678

It also fixes issues with some more advanced use cases, such as animating transforms on bones that are newly added using merge armature.
2023-01-05 04:10:22 -08:00
bd_
df8d0d7981 Workaround Merge Armature breaking parent PBs
The Merge Armature logic is in need of an overall rewrite, but this works around
issues where added (duplicate) bones break PBs in parents, by adding these to parent PB ignore lists.
2022-12-17 00:28:46 -08:00
anatawa12
42d83304ab chore: reduce # of GetComponentsInChildren 2022-12-12 16:14:11 -08:00
anatawa12
664a6c3081 chore: extract mapping constraint source to one method 2022-12-12 16:14:11 -08:00
anatawa12
27bb7b6312 fix: worldUpObject of AimConstraint and LookAtConstraint is not fixed up 2022-12-12 16:14:11 -08:00
bd_
56e08513a5
Prune duplicate PBs on merge armature (#150)
This fixes issues where outfits which duplicate the PB components from the
base avatar can result in PB motion breaking after merge.
2022-12-09 12:39:39 -08:00
bd_
9a38bd8620
Fix some issues caused by nesting AvatarDescriptors (#110) 2022-11-29 09:58:12 -08:00
bd_
ff313f33a9 Avoid exposing a bunch of internal APIs 2022-11-27 13:51:39 -08:00
bd_
318599ae3d The Big Rename
Closes: #84
2022-11-10 20:42:46 -08:00