From a4b7b679f0f83e2423573bdb7bb58dc5a72af8f0 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Sat, 1 Aug 2026 13:09:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B4=B4=E5=90=88=E5=9C=B0=E9=9D=A2=20F?= =?UTF-8?q?ree=20=E8=B7=AF=E5=BE=84=E8=A1=A5=E4=B8=8A=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=96=B9=E5=90=91=20yaw=20=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ApplyAlignToGround 的路径 yaw 搜索条件只含 Ground/Hoisting, Free 被排除导致贴合地面后物体面朝下但未对齐路径方向。 加入 Free,贴合地面后同样搜索最小截面对齐路径。 257 单测全过 --- src/UI/WPF/ViewModels/AnimationControlViewModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UI/WPF/ViewModels/AnimationControlViewModel.cs b/src/UI/WPF/ViewModels/AnimationControlViewModel.cs index 6ff1840..8e1f47a 100644 --- a/src/UI/WPF/ViewModels/AnimationControlViewModel.cs +++ b/src/UI/WPF/ViewModels/AnimationControlViewModel.cs @@ -2391,7 +2391,9 @@ namespace NavisworksTransport.UI.WPF.ViewModels double searchedWidthAcrossPath = 0.0; double searchedHeightAlongUp = 0.0; bool hasSearchedExtents = false; - if ((CurrentPathRoute?.PathType == PathType.Ground || CurrentPathRoute?.PathType == PathType.Hoisting) + if ((CurrentPathRoute?.PathType == PathType.Ground || + CurrentPathRoute?.PathType == PathType.Hoisting || + CurrentPathRoute?.PathType == PathType.Free) && routePoints != null && routePoints.Count >= 2) { var start = routePoints[0];