Commit Graph

81 Commits

Author SHA1 Message Date
bd_
76eca08c22 feat: Sync Parameter Sequence 2024-12-01 15:36:53 -08:00
bd_
f3bf07b601
perf: switch to AssetSaver API (#1372) 2024-11-28 16:59:01 -08:00
bd_
80d17f8284
fix: heuristic matching for "びしょ濡れのしずくちゃん" (#1370) 2024-11-25 19:09:12 -08:00
bd_
46f5296528
Revert "Use VRCParentConstraint instead of constraint hack for world fixed objects when available (#1326)" (#1363)
This reverts commit a984cf8673. The prior
behavior was to lock world fixed objects at their offset from the
origin; however with this change we ended up locking them at a location
relative to the avatar spawn location, breaking some gimmicks.

I tried experimenting a bit with VRCConstraint to try to replicate this
behavior, but it seems a bit non-trivial, so we'll revert this as a
hotfix for now.
2024-11-19 19:04:33 -08:00
bd_
30512c26e8
fix: NotSynced parameters become synced when merging (#1347)
Closes: #1342
2024-11-16 19:02:32 -08:00
bd_
4405d7aa56
fix: MA Parameters bool items + MA Menu Item auto value is broken (#1345)
Closes: #1331
2024-11-16 19:02:24 -08:00
Jeremy Lam aka. Vistanz
a984cf8673
Use VRCParentConstraint instead of constraint hack for world fixed objects when available (#1326)
* Fixes error when merging same parameter with different type in RC menu item.

* Rollback ReactiveObjectPass, use another approach

* Set defaults to ModularAvatarMergeAnimator to prevent potential errors

* Use VRCParentConstraint instead of constraint hack
for world fixed objects when available

* Make sure the VRC constraint only applies on VRChat avatars

* Extract creation logic to external method

* Rearrange method

* Get rid of unit test

* Fix unit test build error

* Fix assert fail
2024-11-16 19:02:09 -08:00
Sayamame-beans
497d16f89d
Improve InferPrefixSuffix / Support using Humanoid Rig on Setup Outfit (#1167)
* feat: inferring prefix/suffix now supports infer with HeuristicBoneMapper

* feat: inferring prefix/suffix is now triggered when prefix/suffix is empty and merge target changed

* chore: add comment for inferring prefix/suffix with HeuristicBoneMapper

* feat: support using Humanoid Rig on RenameBonesByHeuristic

* feat: support using cloth's Humanoid Rig on merge_armature.adjust_names

* feat: support outfits' hips in one more deep place

* chore: refine condition on Heuristic Bone Mapper's exact humanoid bone matching

* chore: unify the process for get outfit's humanoid bones

* chore: rename variable name to clarify means

* chore: use InitializeOnLoadMethod instead of reflection to get boneNamePattern from Editor Assembly

* test: add some tests for SetupOutfit and InferPrefixSuffix
2024-11-02 15:17:24 -07:00
kaikoga
efa263b551
chore: Fix non-VRChat support (for MA 1.10.5) (#1324)
* feat: add version defines for VRCSDK

* chore: early return if VRCSDK project but not VRChat avatar
2024-10-27 10:06:35 -07:00
bd_
9dc342e81e
fix: always-on toggles fail to animate objects to off (#1300)
Closes: #1285
2024-10-19 17:15:23 -07:00
bd_
8bf1d29bf3
test: add missing blendshape/RC tests (#1293) 2024-10-15 19:16:43 -07:00
bd_
656a401684
fix: proxy animations are cloned in Merge Animator (#1266)
This fixes issues with しゃがみ置き換え+α among other things.
2024-10-05 15:19:42 -07:00
bd_
30cafb21e4
fix: incorrect handling of shape key deletion (#1258)
This change reworks delete handling to be more consistent with other properties,
by treating it as a virtual property (`deletedShape.{blendshapeName}`) instead of
a weird additional field of blendshape keys. This then fixes a number of issues
(e.g. broken preview for delete keys).

Fixes: #1253
2024-10-03 20:16:53 -07:00
bd_
c379d730ca chore: fix unit test broken by merge 2024-10-02 20:09:14 -07:00
bd_
409592f952
fix(rc): constant-off objects are not handled correctly (#1249)
Closes: #1233
2024-10-02 19:42:19 -07:00
nekobako
36e035c8c7
fix: inverted reactive components on inactive objects didn't set defa… (#1246)
* fix: inverted reactive components on inactive objects didn't set default states

* chore: use `InitiallyActive` helper

---------

Co-authored-by: bd_ <bd_@nadena.dev>
2024-10-02 19:03:03 -07:00
nekobako
2c9939dea8 chore: remove ShapeChanger migration for beta only 2024-10-01 20:15:24 -07:00
bd_
cb2afcc3d5 fix: Menu Installers on the same object as Merge Armature are not processed
Changes to pass ordering caused Merge Armature to destroy menus before being
processed by Menu Installer; fix this by hoisting menu generation to occur within
the animation services context, before Merge Armature runs. This is safe because
the menu installer pass does not interact with the avatar's animator controllers
directly.
2024-10-01 20:13:02 -07:00
bd_
b866628b24 chore: fix compiler warnings 2024-09-27 19:37:23 -07:00
bd_
a018df9219
chore: improve PropCache debuggability by adding a name property (#1209) 2024-09-25 20:01:59 -07:00
bd_
a5e716cb3e
fix: incorrect auto parameter assignment when a non-auto item is set to 0 (#1189) 2024-09-22 18:12:26 -07:00
bd_
71ddd257a3
test: add tests for PropCache (#1156)
* test: add tests for PropCache

* chore: update NDMF dependency
2024-09-17 20:40:09 -07:00
nekobako
48b7d80f7c
Fix menu item float value (#1140)
* fix: menu item with float value incorrectly generates bool parameter

* fix: reactive components generate transitions with overlapping condition ranges

* chore: add tests for menu item parameter type

* fix: incorrect parameter type detemination for float values

* chore: add more tests for menu item parameter type

* refactor: unify logic to determine parameter type and rename confusing variable
2024-09-15 19:32:59 -07:00
nekobako
b83b89ce38
fix: incorrect default value for single menu item with automatic value (#1147) 2024-09-15 14:23:15 -07:00
bd_
fed6a22d72
fix: multiple issues with auto parameter value assignment (#1136)
Closes: #1110
2024-09-13 19:27:01 -07:00
bd_
668ab35b46
fix: avatar masks are not rewritten when merging animators (#1093)
Closes: #228
2024-09-03 15:44:29 -07:00
bd_
28ed2e0ed1
fix: layer cross-references are broken by empty layer pruning in some cases (#1075)
Fixes: #830
2024-09-01 16:55:42 -07:00
bd_
c6e863d409
fix: MA Parameters does not update animator parameter curves (#1072)
Closes: #180
2024-08-31 20:47:13 -07:00
bd_
8ed649f9a4
feat: add API to trigger Setup Outfit processing (#1018)
Closes: #907
2024-08-19 20:08:36 -07:00
bd_
3f02a1127f
fix: constant reactive objects are incorrectly animated to original scene state (#1017)
Closes: #1014
2024-08-18 18:47:33 -07:00
bd_
81bcd14bcd chore: no-op change in BlendshapeSyncIntegrationTest.prefab 2024-08-13 19:59:52 -07:00
anatawa12
f4ab86fedc
feat: SetOrInherit mode in MA Mesh Settings for EasySetupOutfit (#981)
* feat: SetOrInherit for MA Mesh Settings

* chore: use SetOrInherit in EasySetupOutfit

* test: fix test data

* Delete Editor/CheckBoneMapping.cs
2024-08-12 18:45:51 -07:00
bd_
4617575123
fix: recursive parameter mappings are not correctly handled (#987)
Closes: #808
2024-08-11 18:48:25 -07:00
bd_
3d3aefd4f9
feat: use VRCHeadChop for VisibleHeadAccessory (#954)
Closes: #784
2024-08-06 05:53:37 -07:00
bd_
8e7526e711
Connect reactive components to MenuItems (#944)
* refactor: generalize support for arbitrary parameters as conditions

* feat: automatically assign Menu Item parameters

* feat: ReactiveComponents respond to MenuItems

* feat: AvatarObjectReference tracks both paths and direct object references

* feat: set isSaved/isSynced/default values from MenuItem

* feat: Object Toggle preview supports menu items and manipulating parent objects

* feat: reactive previews respond to menu item default value states

* chore: update NDMF dependency
2024-08-04 19:31:43 -07:00
bd_
32dc864d8d
feat: add Object Toggle component (#942)
* feat: add Object Toggle component

* docs: Object Toggle docs

* chore: add missing HelpURL

* chore: fix broken test
2024-08-03 19:56:07 -07:00
bd_
57fe84548c
feat: shape changer can respond to multiple parent objects being animated (#916)
* refactor: generalize the shape changer implementation a bit

* feat: shape changer can respond to multiple parent objects being animated

Closes: #865
2024-07-06 21:39:42 -07:00
bd_
746a72f60b
fix: unused/hidden subparameters are retained and break builds (#914) 2024-07-06 21:34:15 -07:00
bd_
02ca58a3a9
fix: shape changer doesn't set the correct initial state for blendshapes it controls (#904)
Closes: #872
2024-06-24 12:04:29 +09:00
bd_
b3142d7f11
chore: minor cleanups, unit tests (#901) 2024-06-24 11:14:18 +09:00
bd_
628c07a505
fix: synced layers with substatemachines are broken (#882)
repro case provided by @anatawa12
2024-06-17 08:26:00 +09:00
bd_
8d3da50b37
feat: MA Shape Changer (#863)
* chore: migrate Scale Adjuster to NDMF preview system

* feat: MA Shape Changer

* chore: update NDMF dependency

* fix: unit test failure
2024-06-03 09:52:08 +09:00
bd_
0024be06e0
fix: FreeSegment "segment not found" errors (#800)
Zero-length allocations could result in multiple entries with the same offset in the segment map. This would then break subsequent lookups.

Fixed by increasing these allocations to a minimum length of one.
2024-03-25 10:09:43 +00:00
bd_
a23acc6537
feat: use NDMF parameter info hooks to remap parameters (#792) 2024-03-17 17:07:13 +09:00
bd_
88cf2e14b7
chore: additional debugging to try to track down FreeSegment issues (#781) 2024-03-16 15:57:11 +09:00
bd_
0ff1da0734
fix: type corrections not applied to substatemachine exit transitions (#751)
Closes: #748
2024-03-09 18:55:31 +09:00
bd_
95a686609d
fix: Visible Head Accessory breaks transform animations (#747)
Closes: #743
2024-03-08 17:59:30 +09:00
bd_
37b0f3c036
opti: fix perf regressions in new armature lock system (#729)
* opti: fix perf regressions in new armature lock system

... by avoiding reinitializing everything whenever any target bone moves.

* chore: fixing unity 2019 issues
2024-03-05 17:26:30 +09:00
bd_
f7b12d7f82
fix: ScaleAdjuster breaks scene view selection (#718)
... fixed by reimplementing ScaleAdjuster (again!)
2024-03-03 17:26:23 +09:00
bd_
962a75f227
fix: parameter order is shuffled (#722)
Closes: #713
2024-03-03 17:16:28 +09:00