Commit Graph

370 Commits

Author SHA1 Message Date
Narazaka
00054c1a52
自動生成などでsubParametersがnullのメニューアセットを指定した場合にエラるのを回避 (#263)
* 自動生成などでsubParametersがnullのメニューアセットを指定した場合にエラるのを回避

* chore: add test for null subparameter field issue

---------

Co-authored-by: bd_ <bd_@nadena.dev>
2023-04-10 20:18:59 +09:00
anatawa12
00c683dd23
fix: retarget is not performed if rootBone is the only bone to be retargeted (#241)
* fix: retarget is not performed if rootBone is the only bone to be retargeted

* fix: MeshRetargeter may cause NRE if mesh is null

* fix: MeshRetargeter is not working if sharedMesh is null

* test: add test case for SkinnedMeshRenderer only with rootBone

* test: fix RootBoneOnly test

* test: fix expected and actual

* test: add test for SkinnedMeshRenderer without mesh
2023-04-09 19:08:57 +09:00
eni
bd81bafc84
feat: add Foot=Ankle mapping, more hand bone names (#265)
This adds support for KokuriRuru, which uses `Ankle_L`/`Ankle_R` for foot bones, and the finger bones generated with the regex replacement `"([A-Za-z]+?)([1-3]_[LR])"` → `"$1$2", "$1Finger$2"`. (Except for thumbs, which still use `Thumb[1-3]_L` not `ThumbFinger[1-3]_L`. This is left in, as another avatar may use this naming.)
2023-04-08 20:46:25 +09:00
bd_
c7d3cb6fa4 chore: use WD blend tree to avoid getting facial expressions stuck 2023-04-05 21:34:16 +09:00
eni
43cd1e3875
fix: inconsistent handedness in finger bone names (#262) 2023-04-04 19:59:14 +09:00
bd_
023e8266ec fix: add "add menu item" button 2023-04-04 19:33:19 +09:00
bd_
72f0154cb4
fix: direct blend parameters not being remapped (#246)
Closes: #245
2023-03-25 15:29:00 +09:00
hill
7d97c75ef8
feat: improve usability of manual bake options
* select output avatar on manual bake
* add GameObject context menus
2023-03-23 19:09:41 +09:00
anatawa12
be654074d9
chore: add bone name mapping from BoneRenamer by Azukimochi (#234)
Co-authored-by: Azukimochi <103747350+Azukimochi@users.noreply.github.com>
2023-03-12 22:08:00 +09:00
bd_
f584f38303 chore: fix off-by-one error in ActionGenerator 2023-03-04 16:43:25 +09:00
bd_
e8366cd84a improvements to error reporting 2023-03-04 14:41:13 +09:00
bd_
76edc43aca
feat: menu actions (#231)
Add a new feature to generate animations for menu items automatically.
Currently this only supports generating blend-tree based GameObject toggles.
2023-03-04 14:31:23 +09:00
bd_
55a2229bc6 add missing Menu folder asset 2023-03-04 14:15:27 +09:00
bd_
2a321612fc GC unused game objects (#229) 2023-03-04 14:15:27 +09:00
bd_
99f8052dd9 Add missing AddComponentMenu annotations 2023-03-04 14:15:27 +09:00
bd_
d39e17a8f6 feat: add object-based menu system (#218)
This adds a GameObject/Component based menu editing system, heavily inspired by Hai's Expressions Menu Hierarchy editor (https://github.com/hai-vr/av3-expressions-menu-hierarchy-editor)
2023-03-04 14:15:27 +09:00
bd_
ce76bb2190
fix: exception in avatar parameters editor (#230) 2023-03-04 14:15:08 +09:00
bd_
f88f3e6225 1.4.5 2023-02-25 17:55:49 +09:00
bd_
319fd9a2ff
feat: add chest=bust mapping for the heuristic bone mapper (#227)
Closes: #220
2023-02-25 17:55:42 +09:00
bd_
2f7e6ccd6f
fix: parameter drivers attached to state machines are not renamed properly (#226) 2023-02-25 17:53:15 +09:00
bd_
d39c098893
feat: improve handling of editoronly objects (#224) 2023-02-25 17:53:09 +09:00
bd_
db7be7107c
fix: high quality curve setting is not preserved properly (#225)
This setting is set to _off_ on some imported animation files;
in this case, tangent data is not used and the curve is interpolated linearly.

Previously, we would sometimes set this to on as part of various animation
manipulations we perform in MA processing; this broke some avatars, e.g. "Fluria".
2023-02-25 17:53:02 +09:00
bd_
887f7d0dff
fix: improve parameter inspector perf when using lots of parameters
This doesn't fully close #217, but it's an improvement. Fully fixing it will require reworking the UI fully (or getting unity to fix their terrible code :/)
2023-02-22 23:29:45 +09:00
bd_
d385eb8800 fix: sometimes the MA icons aren't disabled properly
It seems that sometimes static initializers are created before the icon annotations are updated. This change checks for this case, and defers the icon-disabling until after the necessary annotation records are created.
2023-02-19 16:04:08 +09:00
bd_
092274d11c 1.4.4 2023-02-18 16:01:13 +09:00
bd_
d4639e2d70 Move actual icon to the icons repository
Since the icon isn't MIT-licensed, this change replaces it in the dev
repo with a placeholder and adds the real icon back in at package build
time (like we do with the main logo image).
2023-02-17 20:59:11 +09:00
Razgriz
46dd103f55 Disable MA icons on project load 2023-02-17 20:59:11 +09:00
Razgriz
7192f90e8e Add MA Icon & Assign to MA Component Scripts 2023-02-17 20:59:11 +09:00
bd_
dcc1650dbd fix: make generated assets easily visible in play mode 2023-02-08 22:35:44 +09:00
bd_
13e009b6fc chore: fix incorrect parameters for certain errors 2023-02-08 22:33:48 +09:00
bd_
c2e6bb53cd feat: Add error reporting UI 2023-02-08 22:19:10 +09:00
bd_
2a8c2ec3ce fix: NPE in blendshape sync editor 2023-02-08 22:04:46 +09:00
bd_
6566fd7b79 1.4.3 2023-01-31 20:20:49 +09:00
bd_
85617735e9 fix(visible-head-accessory): workaround unity crash
Reported-By: Momishiro
2023-01-30 22:55:56 +09:00
bd_
d6ab6c676f 1.4.2 2023-01-27 21:16:21 +09:00
bd_
8ac7217c26 fix: synced layer motion overrides not preserved over MA processing
Reported-By: ぷも
2023-01-27 21:15:38 +09:00
bd_
0374a9a099 fix: ArgumentNullException when blend tree clips are missing/none
fixes: 188
2023-01-27 21:15:26 +09:00
bd_
7e9dc20201 fix: proxy animations broken on legacy VRCSDK
fixes: #187
2023-01-26 18:33:34 +09:00
bd_
91813c54e8 1.4.1 2023-01-24 21:41:54 +09:00
bd_
d1e047a3d2 fix: mesh processing aborts when encountering null sharedMesh 2023-01-24 21:41:33 +09:00
bd_
fb19fd6cc0 fix: simple asset-root toggles are not remapped correctly 2023-01-24 21:41:20 +09:00
bd_
26270d5691 1.4.0 2023-01-20 20:42:23 +09:00
bd_
1b4b373343 1.4.0-rc-4 2023-01-19 21:49:40 +09:00
bd_
592f469b8b fix: wrong translations for new bone proxy modes 2023-01-19 21:45:01 +09:00
bd_
55827868f9 fix: keep position/keep rotation modes not applied in editor 2023-01-19 21:42:11 +09:00
bd_
231ae585bb rc3 2023-01-18 19:11:05 +09:00
bd_
33895a58e8 fix: BoneProxy non-humanoid references did not save properly 2023-01-18 19:09:28 +09:00
bd_
be32ed55f5 fix: BoneProxy editor is missing pos/rot hold options 2023-01-18 19:09:16 +09:00
bd_
ef1699e4da rc2 2023-01-17 20:41:45 +09:00
bd_
eb7af61a08 [BoneProxy] feat: add support for keeping only one of world position/rotation 2023-01-17 20:40:42 +09:00
Gizmo
51f7c5936d Add missing translations 2023-01-17 20:08:03 +09:00
Gizmo
acdcaa991e feat: add simplified chinese translation 2023-01-17 20:08:03 +09:00
bd_
305377c1bb feat: use english localization for untranslated strings 2023-01-17 20:06:50 +09:00
bd_
9f9c2af1bd chore: remove outdated comment 2023-01-17 19:56:12 +09:00
bd_
df47be245f fix: duplicate PB stripping fails in some configurations
The previous logic failed when duplicate PBs explicitly specify their root transform.
This change rewrites this logic and expands the cases in which PBs are pruned.
2023-01-17 00:01:08 +09:00
bd_
dd07acda1d chore: mark AfterProcessing hook internal 2023-01-16 21:15:30 +09:00
bd_
b30504c348 chore: enable code coverage 2023-01-16 21:15:30 +09:00
anatawa12
85676c5fbf chore: make RuntimeUtil internal via InternalsVisibleTo 2023-01-09 19:23:30 +09:00
bd_
76dfa2a6fc chore: more perf improvements 2023-01-05 21:47:37 +09:00
bd_
0217c0ecf0 1.4.0-rc-1 2023-01-05 21:31:15 +09:00
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_
b13f60e80f chore: remove debug print 2023-01-05 21:12:30 +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_
b9fde37285 1.3.0 2023-01-02 16:47:09 +09:00
bd_
435ce7b248 fix: NPE in menu installer editor 2023-01-02 16:44:52 +09:00
bd_
569275dcba fix: NPE on null submenu reference 2023-01-02 16:44:37 +09:00
らいちちゃん
a361789c43
feat: add support for nested Menu Installer operation
With this change it is now possible for Menu Installer to specify as its target a menu installed by another Menu Installer, or a submenu thereof. This allows prefabs to inject extension entries into other prefab menus.
2023-01-01 23:42:54 -08:00
bd_
549ce8f0d3 fix: add more heuristic bone mappings 2023-01-02 16:27:35 +09:00
bd_
db49e2e210 fix: blendshape sync breaks with default binding 2022-12-31 18:43:11 +09:00
bd_
2bfefc7bac 1.2.1 2022-12-20 21:33:10 +09:00
bd_
5351b7befb fix: multiple bugs in Activator
* Activator tries to mark scene dirty in play mode (fixes #164)
* Activator creates multiple hidden objects which build up over time
2022-12-20 04:32:49 -08:00
bd_
39be252f12 1.2.0 2022-12-19 18:56:42 +09:00
bd_
2bea35b9df chore: fix harmless use-after-destroy warning in Activator 2022-12-18 15:41:43 +09:00
bd_
9d63ca60e4 1.2.0-rc0 2022-12-18 14:42:07 +09:00
bd_
f49c6a0d2e ensure that MA processing runs even if all MA components are inactive 2022-12-17 21:31:16 -08:00
bd_
ab2761a30f Avoid recursive reprocessing of avatars 2022-12-17 21:21:50 -08:00
bd_
1a12a4b6bd chore: dev dep version and project config updates 2022-12-17 20:26:01 -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
bd_
1a114b65fe Fix blendshape sync not using remapped names for animations 2022-12-16 23:55:33 -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
raiti-chan
622ea7d387 Fix validation methods to avoid infinite loops. 2022-12-12 16:02:31 -08:00
bd_
223f96d04e Initial implementation of heuristic bone matching
Closes: #105
2022-12-10 16:58:46 -08:00
bd_
c70e821271 Import an initial list of bone name patterns 2022-12-10 16:58:46 -08:00
bd_
8bbe774ea1
Adjust callback order to support EditorOnly fully (#151) 2022-12-09 12:41:07 -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_
2ac191555e
Sanitize invalid icons on menu installation (#146) 2022-12-09 11:40:22 -08:00
bd_
e7ec5b08b4
Add warning in inspector UI for incompatible VRCSDK versions. (#147) 2022-12-09 11:40:16 -08:00
bd_
b7b4fde863
Fix NRE caused by missing root bone (#149)
Fixes: #135
2022-12-09 11:40:07 -08:00
bd_
5911973e9d
Enable (but no-op) setup outfit when outfit is already setup (#148)
Closes: #132
2022-12-09 11:40:00 -08:00
らいちちゃん
811c934f40
Added support for AnimatorOverrideController (#139) 2022-12-09 10:55:17 -08:00
Narazaka
d72e529ad7
たぶんPathは「パス」とするのが一般的 (#137) 2022-12-08 13:58:47 -08:00
らいちちゃん
19a6923051
Add validation for menu icons. (#130) 2022-12-02 20:32:40 -08:00
bd_
118c2bd961 1.1.2 2022-12-01 10:26:37 -08:00
bd_
474fd1a37c vpm manifest updates 2022-12-01 10:26:31 -08:00
bd_
b06e27f3c3
[fix] fix broken material animations (again) (#129) 2022-12-01 10:14:08 -08:00
bd_
c37fc01e77
1.1.1 2022-11-30 21:40:46 -08:00
bd_
83e432b245
Fix some transitions breaking animator merge logic (#127) 2022-11-30 21:38:54 -08:00
bd_
b9749a9e6d
[chore] don't lock to a specific vrchat SDK version (#123) 2022-11-30 14:55:54 -08:00
bd_
65ea7e6434 Fix bug where physbone blocker would skip every other xform 2022-11-30 13:02:05 -08:00
bd_
e58ffbf3a3 1.1.0 2022-11-30 12:50:49 -08:00
bd_
5bc9211f80
Add a component to block PhysBone chains (#113)
Closes: #111, #104
2022-11-30 12:49:45 -08:00
bd_
55e363c1b2
[ui] prevent Setup Outfit from running on an avatar root (#121)
Closes: #118
2022-11-30 12:49:21 -08:00
bd_
2530588fe0
Fix animator cloning creating duplicate MonoScript objects (#116)
Closes: #115
2022-11-30 12:42:57 -08:00
bd_
d66881fa80
Close blendshape selection window when it loses focus (#120) 2022-11-30 12:41:57 -08:00
らいちちゃん
42618e464c
Added support for closing AvMenuTreeViewWindow automatically when it loses focus. (#119) 2022-11-30 12:40:10 -08:00
Koarare
541d2f3e65
Fix issue where bounding box size changes if the base avatar and outfit scale is different (#117) 2022-11-30 05:45:58 -08:00
bd_
e1e18a45a8 1.0.1 2022-11-29 09:58:49 -08:00
bd_
9a38bd8620
Fix some issues caused by nesting AvatarDescriptors (#110) 2022-11-29 09:58:12 -08:00
bd_
072b5c1ff1
Fix merging of material swap animations (#109) 2022-11-29 09:58:03 -08:00
Koarare
2ad706b3f5
Search all children of the armature when running setup outfit (#108)
https://github.com/bdunderscore/modular-avatar/issues/101

Closes: #101
2022-11-28 20:34:13 -08:00
bd_
80e0c45519 Fix pentip minimum vertex distance (again) 2022-11-27 21:45:39 -08:00
bd_
d2cad436cf 1.0.0 2022-11-27 13:55:45 -08:00
bd_
ff313f33a9 Avoid exposing a bunch of internal APIs 2022-11-27 13:51:39 -08:00
bd_
bd3ee6987b 1.0.0-rc3 2022-11-26 12:57:45 -08:00
bd_
0dd571e371 Restore compatibility with legacy unitypackage VRCSDKs
If this breaks again I probably won't fix it.
2022-11-26 12:57:29 -08:00
bd_
25729dc81b 1.0.0-rc2 2022-11-25 15:40:44 -08:00
bd_
989b6ea926 [MenuInstaller] Display the root menu in editor UI when defaulting to the root menu
Closes: #94
2022-11-25 15:40:29 -08:00
bd_
3ef87552e9 [MergeAnimator] Default to FX layer
Closes: #96
2022-11-25 15:33:18 -08:00
bd_
929f1a4d9f Rename manual bake menu item and add validator
Closes: #95
2022-11-25 15:32:04 -08:00
bd_
1432b4428b Change the allowlist patch to avoid private member reflection 2022-11-25 11:47:22 -08:00
bd_
9b8307cbdb Add an icon to the continuation menu control
Future work: Make the icon style configurable (needs some kind of avatar-wide
config system)
2022-11-24 19:22:23 -08:00
bd_
724b2bd285 Add a bunch of icons contributed by WWR
Icon author: WWR (https://twitter.com/WWRPR)
Contributed under the MIT license.
2022-11-24 19:21:44 -08:00
bd_
7e6609fde8 1.0.0-rc1 2022-11-24 18:18:44 -08:00
bd_
3f65250c64 Fix null in generated submenus breaking av3emu 2022-11-24 18:00:18 -08:00
bd_
a7db1c9a85 0.9.1 2022-11-24 17:19:55 -08:00
bd_
d2f8c22ac8 Fix quadratic time behavior on exception
Previously, processing would abort before clearing AvatarTagComponents when an exception
is thrown. This would result in unprocessed AvatarTagComponents re-triggering processing
as part of their Awake callback, causing O(n^2) behavior.
2022-11-24 17:19:37 -08:00
bd_
7ed1593bda Fix exception caused by nested MA Parameters using the same parameter name 2022-11-24 17:18:34 -08:00
bd_
aca6af3cb4 0.9.0 2022-11-23 20:43:42 -08:00
bd_
e5a858cf68 Set attachment mode on clap sample 2022-11-23 20:43:42 -08:00
bd_
d8b1183c30 Add support for world-locking bone proxies (useful for cloth setups) 2022-11-23 19:33:00 -08:00
bd_
8af7b0d5d6 Fix state machine outgoing transitions not being name-mangled
Closes: #93
2022-11-23 19:33:00 -08:00
bd_
4ce3223844 Add additional bone proxy validation
Closes: #85
2022-11-19 19:12:23 -08:00
bd_
999add24c9 Fix blend tree parameters not being remapped
Closes: #91
2022-11-19 19:12:23 -08:00
bd_
08897abab1 Clear pen on reenable 2022-11-19 19:12:23 -08:00
bd_
a4d039843d Fix error in BlendshapeSyncAnimationProcessor 2022-11-19 19:12:23 -08:00
bd_
b4e370aad3 Improvements to clap sample 2022-11-13 19:14:22 -08:00
bd_
a544765727 Fix infinite recursion in BoneProxyEditor 2022-11-13 18:55:31 -08:00
bd_
b4eb48cc7e 0.8.0 2022-11-10 20:49:32 -08:00
bd_
702b20519a Update email 2022-11-10 20:47:28 -08:00
bd_
46b2195f33 Fix concurrent modification exception
Closes: #86
2022-11-10 20:45:10 -08:00
bd_
318599ae3d The Big Rename
Closes: #84
2022-11-10 20:42:46 -08:00
bd_
b7e4409d6b Only show the logo once per inspector pane 2022-11-10 20:30:10 -08:00
bd_
acf692fd14 0.7.1 2022-11-09 19:55:40 -08:00
bd_
397061c360 Some docs updates 2022-11-09 18:17:00 -08:00
bd_
b3eec08abe Organize add component menu 2022-11-09 17:49:00 -08:00
bd_
2091402572 Rename FPV -> Visible Head Accessory 2022-11-09 17:39:52 -08:00
bd_
3486adbca2 Workaround a unity bug resulting in broken AV3 debug displays
Thanks to @TCL987 for a hint as to where to start looking!
2022-11-08 20:11:02 -08:00
bd_
4f4faa929d Show warning when components are outside of the avatar root
Closes: #39
2022-11-07 20:44:00 -08:00