mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-05 05:14:56 +08:00
chore: more perf improvements
This commit is contained in:
parent
0217c0ecf0
commit
76dfa2a6fc
@ -115,6 +115,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
try
|
||||
{
|
||||
ProcessAvatar(avatarGameObject);
|
||||
FixupAnimatorDebugData(avatarGameObject);
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -130,6 +131,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
try
|
||||
{
|
||||
AssetDatabase.StartAssetEditing();
|
||||
nowProcessing = true;
|
||||
|
||||
var vrcAvatarDescriptor = avatarGameObject.GetComponent<VRCAvatarDescriptor>();
|
||||
@ -171,11 +173,11 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
context.AnimationDatabase.Commit();
|
||||
|
||||
AfterProcessing?.Invoke(avatarGameObject);
|
||||
|
||||
FixupAnimatorDebugData(avatarGameObject);
|
||||
}
|
||||
finally
|
||||
{
|
||||
AssetDatabase.StopAssetEditing();
|
||||
|
||||
nowProcessing = false;
|
||||
|
||||
// Ensure that we clean up AvatarTagComponents after failed processing. This ensures we don't re-enter
|
||||
|
Loading…
Reference in New Issue
Block a user