From 766b5af887f53910b96060aa9c0d15abe60df258 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Sun, 29 Mar 2026 18:28:41 +0800 Subject: [PATCH] Stop auto-switching to path view before animation playback --- .../ViewModels/AnimationControlViewModel.cs | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/src/UI/WPF/ViewModels/AnimationControlViewModel.cs b/src/UI/WPF/ViewModels/AnimationControlViewModel.cs index 242fcd0..5b7049f 100644 --- a/src/UI/WPF/ViewModels/AnimationControlViewModel.cs +++ b/src/UI/WPF/ViewModels/AnimationControlViewModel.cs @@ -1500,25 +1500,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels { try { - // 自动调整视角到路径中心 - try - { - var coreRoute = CurrentPathRoute?.Route; - if (coreRoute != null) - { - ViewpointHelper.AdjustViewpointToPathCenter(coreRoute); - LogManager.Info($"正向播放前:已自动调整视角到路径中心: {CurrentPathRoute.Name}"); - } - else - { - LogManager.Warning($"正向播放前:CurrentPathRoute.Route 为 null"); - } - } - catch (Exception ex) - { - LogManager.Error($"正向播放前:调整视角失败: {ex.Message}"); - } - _pathAnimationManager?.PlayForward(); UpdateMediaControlProperties(); LogManager.Info("执行正向播放命令"); @@ -1537,25 +1518,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels { try { - // 自动调整视角到路径中心 - try - { - var coreRoute = CurrentPathRoute?.Route; - if (coreRoute != null) - { - ViewpointHelper.AdjustViewpointToPathCenter(coreRoute); - LogManager.Info($"反向播放前:已自动调整视角到路径中心: {CurrentPathRoute.Name}"); - } - else - { - LogManager.Warning($"反向播放前:CurrentPathRoute.Route 为 null"); - } - } - catch (Exception ex) - { - LogManager.Error($"反向播放前:调整视角失败: {ex.Message}"); - } - _pathAnimationManager?.PlayReverse(); UpdateMediaControlProperties(); LogManager.Info("执行反向播放命令");