Add IAacDefaultsProvider.ConfigureStateMachine(...) to position the core nodes

This commit is contained in:
Haï~
2022-05-10 20:06:47 +02:00
parent 955655fd6f
commit 77d68dcc0f
3 changed files with 15 additions and 4 deletions
+2 -4
View File
@@ -634,10 +634,8 @@ namespace AnimatorAsCode.V0
var layer = TryGetLayer(layerName);
var machinist = new AacFlStateMachine(layer.stateMachine, _emptyClip, new AacBackingAnimator(this), _defaultsProvider);
return machinist
.WithAnyStatePosition(0, 7)
.WithEntryPosition(0, -1)
.WithExitPosition(7, -1);
_defaultsProvider.ConfigureStateMachine(layer.stateMachine);
return machinist;
}
private int FindIndexOf(string layerName)