From bd7deea0e5efc17bdeb495a475921d73c5f9d52a Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Fri, 31 Jul 2026 17:05:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E7=94=B1=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=88=B0=E8=B5=B7=E7=82=B9=E6=97=B6=E6=8E=92?= =?UTF-8?q?=E9=99=A4=E5=B9=B3=E9=9D=A2=E6=97=8B=E8=BD=AC=E5=88=86=E6=94=AF?= =?UTF-8?q?=EF=BC=8C=E4=BF=9D=E6=8C=81=E5=8E=9F=E5=A7=8B=E5=A7=BF=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:MoveObjectToPathStart 中 'PathType != Rail && TryCreatePlanarPathRotationAtStart' 分支会捕获 Free(Free != Rail),应用基于路径方向(含与地面的夹角)的 平面旋转,导致物体姿态被修改。已将 Free 从该分支排除,使 Free 走 纯平移分支(ApplyTrackedTranslationOnly),保持物体原始姿态。 257 单测全过。 --- src/Core/Animation/PathAnimationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Animation/PathAnimationManager.cs b/src/Core/Animation/PathAnimationManager.cs index b48eeaa..54afe21 100644 --- a/src/Core/Animation/PathAnimationManager.cs +++ b/src/Core/Animation/PathAnimationManager.cs @@ -914,7 +914,7 @@ namespace NavisworksTransport.Core.Animation LogManager.Error($"[移动到起点] {_route.PathType.GetDisplayName()} 真实物体纯增量起点失败,已禁止退回旧姿态链。"); return false; } - else if (_route.PathType != PathType.Rail && + else if (_route.PathType != PathType.Rail && _route.PathType != PathType.Free && TryCreatePlanarPathRotationAtStart(out var planarRotation)) { ApplyFullPoseUpdate(startPosition, planarRotation);