mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-05-10 21:29:00 +08:00
remove obsolete reify pass
This commit is contained in:
parent
64664ac949
commit
557b4619ae
@ -172,7 +172,6 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
var context = new BuildContext(vrcAvatarDescriptor);
|
||||
|
||||
new ReifyMenuPass().OnPreprocessAvatar(vrcAvatarDescriptor, context);
|
||||
new RenameParametersHook().OnPreprocessAvatar(avatarGameObject, context);
|
||||
new MergeAnimatorProcessor().OnPreprocessAvatar(avatarGameObject, context);
|
||||
context.AnimationDatabase.Bootstrap(vrcAvatarDescriptor);
|
||||
|
@ -1,32 +0,0 @@
|
||||
using System.Linq;
|
||||
using nadena.dev.modular_avatar.editor.ErrorReporting;
|
||||
using UnityEngine;
|
||||
using VRC.SDK3.Avatars.Components;
|
||||
using VRC.SDK3.Avatars.ScriptableObjects;
|
||||
|
||||
namespace nadena.dev.modular_avatar.core.editor
|
||||
{
|
||||
internal class ReifyMenuPass
|
||||
{
|
||||
public void OnPreprocessAvatar(VRCAvatarDescriptor root, BuildContext context)
|
||||
{
|
||||
foreach (ModularAvatarMenuInstaller installer in
|
||||
root.GetComponentsInChildren<ModularAvatarMenuInstaller>(true))
|
||||
{
|
||||
BuildReport.ReportingObject(installer, () => ReifyMenu(context, installer));
|
||||
}
|
||||
}
|
||||
|
||||
private void ReifyMenu(BuildContext context, ModularAvatarMenuInstaller installer)
|
||||
{
|
||||
var source = installer.GetComponent<MenuSource>();
|
||||
if (source == null) return;
|
||||
|
||||
var controls = source.GenerateMenu();
|
||||
var menu = ScriptableObject.CreateInstance<VRCExpressionsMenu>();
|
||||
menu.controls = controls.ToList();
|
||||
|
||||
installer.menuToAppend = context.CloneMenu(menu);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e50c6e0b2ad64fc0b1b00cb45117f023
|
||||
timeCreated: 1676895255
|
Loading…
x
Reference in New Issue
Block a user