Fix root motion preview in animation window

This commit is contained in:
Wojtek Figat
2024-02-09 15:38:11 +01:00
parent da1b2f0c07
commit 87c66b0168
3 changed files with 5 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ namespace FlaxEditor.Windows.Assets
// Use virtual animation graph to playback the animation
_animGraph = FlaxEngine.Content.CreateVirtualAsset<AnimationGraph>();
_animGraph.InitAsAnimation(model, _window.Asset);
_animGraph.InitAsAnimation(model, _window.Asset, true, true);
PreviewActor.AnimationGraph = _animGraph;
}