Stop auto-switching to path view before animation playback
This commit is contained in:
parent
382923fa32
commit
766b5af887
@ -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("执行反向播放命令");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user