From 42a1d735edac8380a07554097c8cd330e26b70b9 Mon Sep 17 00:00:00 2001 From: ChenX Date: Mon, 25 Apr 2022 11:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/CADFiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DatabaseServices/CADFiler.ts b/src/DatabaseServices/CADFiler.ts index 1963cce89..b10425268 100644 --- a/src/DatabaseServices/CADFiler.ts +++ b/src/DatabaseServices/CADFiler.ts @@ -139,7 +139,7 @@ export class CADFiler //-------1.普通关联 WriteObjectId(id: ObjectId): this { - if (id) + if (id)// id?.Object 为什么没有这么写? 这么写会精简图纸,但是不确定会不会引发新的问题? 其他地方有没有可能依赖这个特性实现一些功能? 比如排钻,如果排钻被删除,我们依然知道排钻的顺序?(曾经拥有?) 暂时不优化似乎也没事? this.Write(id.Index); else this.Write(0);