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