初始化时和文档就绪时刷新碰撞检测历史列表

This commit is contained in:
tian 2026-02-03 23:08:11 +08:00
parent 0d241532c9
commit dcf90a34fd
2 changed files with 11 additions and 1 deletions

View File

@ -7,7 +7,7 @@
1. [x] (优化)预计算高亮正确,结果高亮错误,高亮了很多不相干的同名物体
2. [ ] BUG预计算一个目标物体161帧碰撞机制有问题
3. [ ] BUG吊装路径终点前的一段拐弯通行空间方向不对
4. [ ] BUG批处理时杀死程序重新打开有执行中的任务但删除选中没激活再运行批处理收到停止信号结束
4. [x] BUG批处理时杀死程序重新打开有执行中的任务但删除选中没激活再运行批处理收到停止信号结束
5. [ ] BUG碰撞检测历史列表不自动加载不自动刷新
6. [ ] (优化)将通行空间透明度变成系统参数,可以修改
7. [ ] 优化ClashDetective检测中每执行100次打印一下日志

View File

@ -892,6 +892,13 @@ namespace NavisworksTransport.UI.WPF.ViewModels
DocumentStateManager.Instance.DocumentInvalidated += OnDocumentInvalidated;
DocumentStateManager.Instance.DocumentReady += OnDocumentReady;
// 🔥 如果文档已经有效,立即刷新碰撞检测历史列表
if (DocumentStateManager.Instance.IsDocumentValid)
{
RefreshClashDetectiveResultsList();
LogManager.Info("[AnimationControlViewModel] 文档已有效,初始化时加载碰撞检测历史列表");
}
// 设置静态实例
_instance = this;
@ -3413,6 +3420,9 @@ namespace NavisworksTransport.UI.WPF.ViewModels
CanStartAnimation = true;
CanGenerateAnimation = true;
// 🔥 文档就绪时刷新碰撞检测历史列表
RefreshClashDetectiveResultsList();
UpdateMainStatus("文档已加载,就绪");
}
catch (Exception ex)