mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-10 06:28:58 +08:00
fix: compatibility issue with lilycalInventory
The early animator cloning logic was dropped in refactoring, put it back.
This commit is contained in:
parent
b75e74ef84
commit
2333484711
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- [#1531] lylicalInventoryとの互換性問題を修正
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- [#1531] Fix compatibility issue with lylicalInventory
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -38,6 +38,13 @@ namespace nadena.dev.modular_avatar.core.editor.plugin
|
|||||||
Sequence seq = InPhase(BuildPhase.Resolving);
|
Sequence seq = InPhase(BuildPhase.Resolving);
|
||||||
seq.Run(ResolveObjectReferences.Instance);
|
seq.Run(ResolveObjectReferences.Instance);
|
||||||
|
|
||||||
|
// Protect against accidental destructive edits by cloning the input controllers ASAP
|
||||||
|
seq.WithRequiredExtension(typeof(AnimatorServicesContext), s =>
|
||||||
|
{
|
||||||
|
// Just activating the context is enough.
|
||||||
|
s.Run("Clone animators", _ => { });
|
||||||
|
});
|
||||||
|
|
||||||
seq = InPhase(BuildPhase.Transforming);
|
seq = InPhase(BuildPhase.Transforming);
|
||||||
seq.Run("Validate configuration",
|
seq.Run("Validate configuration",
|
||||||
context => ComponentValidation.ValidateAll(context.AvatarRootObject));
|
context => ComponentValidation.ValidateAll(context.AvatarRootObject));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user