mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-10 07:44:57 +08:00
parent
08897abab1
commit
999add24c9
@ -273,6 +273,25 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
ProcessDriver(driver, remaps);
|
ProcessDriver(driver, remaps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state.motion is BlendTree blendTree)
|
||||||
|
{
|
||||||
|
ProcessBlendtree(blendTree, remaps);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ProcessBlendtree(BlendTree blendTree, ImmutableDictionary<string, string> remaps)
|
||||||
|
{
|
||||||
|
blendTree.blendParameter = remap(remaps, blendTree.blendParameter);
|
||||||
|
blendTree.blendParameterY = remap(remaps, blendTree.blendParameterY);
|
||||||
|
|
||||||
|
foreach (var childMotion in blendTree.children)
|
||||||
|
{
|
||||||
|
if (childMotion.motion is BlendTree subTree)
|
||||||
|
{
|
||||||
|
ProcessBlendtree(subTree, remaps);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessDriver(VRCAvatarParameterDriver driver, ImmutableDictionary<string, string> remaps)
|
private void ProcessDriver(VRCAvatarParameterDriver driver, ImmutableDictionary<string, string> remaps)
|
||||||
|
Loading…
Reference in New Issue
Block a user