diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index 11a43195..0ddfe660 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -78,6 +78,13 @@ public class CUE4ParseViewModel : ViewModel set => SetProperty(ref _modelIsOverwritingMaterial, value); } + private bool _modelIsWaitingAnimation; + public bool ModelIsWaitingAnimation + { + get => _modelIsWaitingAnimation; + set => SetProperty(ref _modelIsWaitingAnimation, value); + } + public bool IsSnooperOpen => _snooper is { Exists: true, IsVisible: true }; private Snooper _snooper; public Snooper SnooperViewer @@ -909,7 +916,7 @@ public class CUE4ParseViewModel : ViewModel SnooperViewer.Run(); return true; } - case UAnimSequenceBase when isNone && UserSettings.Default.PreviewAnimations || SnooperViewer.Renderer.Options.ModelIsWaitingAnimation: + case UAnimSequenceBase when isNone && UserSettings.Default.PreviewAnimations || ModelIsWaitingAnimation: { // animate all animations using their specified skeleton or when we explicitly asked for a loaded model to be animated (ignoring whether we wanted to preview animations) SnooperViewer.Renderer.Animate(pointer.Object.Value); diff --git a/FModel/Views/Snooper/Options.cs b/FModel/Views/Snooper/Options.cs index 0f55dd27..7b4f434b 100644 --- a/FModel/Views/Snooper/Options.cs +++ b/FModel/Views/Snooper/Options.cs @@ -16,7 +16,6 @@ namespace FModel.Views.Snooper; public class Options { public FGuid SelectedModel { get; private set; } - public bool ModelIsWaitingAnimation { get; private set; } public int SelectedSection { get; private set; } public int SelectedMorph { get; private set; } public int SelectedAnimation{ get; private set; } @@ -238,7 +237,7 @@ public class Options public void AnimateMesh(bool value) { - ModelIsWaitingAnimation = value; + Services.ApplicationService.ApplicationView.CUE4Parse.ModelIsWaitingAnimation = value; } public void ResetModelsLightsAnimations()