From 89722efaca0e09a2535ce49c32db1f8f47200d1b Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Mon, 13 Oct 2025 12:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A2=B0=E6=92=9E=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E8=BF=9B=E5=BA=A6=E6=9D=A1=E9=97=AA=E7=83=81=EF=BC=9A?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B8=8D=E7=A1=AE=E5=AE=9A=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E6=9D=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了CreateAllAnimationCollisionTests方法中的progress.Update()调用, 使进度条保持不确定样式(滚动条,无百分比显示)。 原因分析: - ClashDetective的TestsRunTest()在后台运行,不提供进度回调 - 频繁调用progress.Update()导致进度条在确定/不确定样式间切换,产生闪烁 - 每个碰撞点处理时间不固定(包括对象移动、测试运行、测试删除) 解决方案: - 去掉Update()调用,让Progress API保持一致的不确定进度条样式 - 仍保留BeginProgress/EndProgress,提供"正在处理N个碰撞点"的提示 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/Core/Collision/ClashDetectiveIntegration.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Core/Collision/ClashDetectiveIntegration.cs b/src/Core/Collision/ClashDetectiveIntegration.cs index 031ea99..792d082 100644 --- a/src/Core/Collision/ClashDetectiveIntegration.cs +++ b/src/Core/Collision/ClashDetectiveIntegration.cs @@ -366,9 +366,6 @@ namespace NavisworksTransport { resultCount++; - // 🎯 更新进度(碰撞检测不支持取消,因为中途取消会导致结果不完整) - progress.Update((double)resultCount / validCollisions.Count); - try { // 临时移动动画对象到碰撞位置以执行测试