summaryrefslogtreecommitdiffstats
path: root/YOTSNDMFGenerator.cs
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-02-19 01:11:19 -0800
committeryum <yum.food.vr@gmail.com>2025-02-19 01:11:19 -0800
commit84bc3daf51d0f670ac27dcf75903efea63f7df40 (patch)
tree6f99281ae54306e07c5ae0cd614c62af6f5c60df /YOTSNDMFGenerator.cs
parent20f37b6c6cdb14bfcff3a6de3c9a1a85a3eb053f (diff)
remove unnecessary saveasset stuff
Diffstat (limited to 'YOTSNDMFGenerator.cs')
-rw-r--r--YOTSNDMFGenerator.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/YOTSNDMFGenerator.cs b/YOTSNDMFGenerator.cs
index 7ea20c8..d8dba78 100644
--- a/YOTSNDMFGenerator.cs
+++ b/YOTSNDMFGenerator.cs
@@ -60,19 +60,14 @@ namespace YOTS
"Avatar parameters or menu is missing.");
return;
}
- // Create a clone of the menu and parameters and save them
menu = UnityEngine.Object.Instantiate(menu);
parameters = UnityEngine.Object.Instantiate(parameters);
- ctx.AssetSaver.SaveAsset(menu);
- ctx.AssetSaver.SaveAsset(parameters);
descriptor.expressionsMenu = menu;
descriptor.expressionParameters = parameters;
- // Generate the animator asset using the BuildContext's AssetSaver
RuntimeAnimatorController generatedAnimator = YOTSCore.GenerateAnimator(
config.jsonConfig.text,
parameters,
- menu,
- ctx.AssetSaver.SaveAsset
+ menu
);
if (generatedAnimator == null) {
ErrorReport.ReportError(localizer, ErrorSeverity.Error, "yots.error.generation_failed",
@@ -81,9 +76,6 @@ namespace YOTS
}
// TODO merge animators
descriptor.baseAnimationLayers[4].animatorController = generatedAnimator;
-
- // During play mode, apply additional temporary processing to the avatar.
- //AvatarProcessor.ProcessAvatar(ctx.AvatarRootObject);
}
);
}