From 71443e9544bc472406ef93d835d43c61e253a22f Mon Sep 17 00:00:00 2001 From: yupeng_dyp Date: Sat, 28 Dec 2024 15:03:14 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/CADShared/ExtensionMethod/Jig/JigE?= =?UTF-8?q?x.cs.=20=E5=BD=93=E9=98=9F=E5=88=97=E4=B8=BA0=E6=97=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=BC=82=E6=AD=A5=E5=88=B7=E6=96=B0=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E6=9C=89=E6=95=88=E5=87=8F=E5=B0=91=E5=A4=84=E7=90=86=E8=BE=83?= =?UTF-8?q?=E5=A4=9A=E5=9B=BE=E5=85=83=E6=97=B6=E7=9A=84=E5=8D=A1=E9=A1=BF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yupeng_dyp --- src/CADShared/ExtensionMethod/Jig/JigEx.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CADShared/ExtensionMethod/Jig/JigEx.cs b/src/CADShared/ExtensionMethod/Jig/JigEx.cs index 7289922..bf89d05 100644 --- a/src/CADShared/ExtensionMethod/Jig/JigEx.cs +++ b/src/CADShared/ExtensionMethod/Jig/JigEx.cs @@ -1,4 +1,4 @@ -#if a2024 || zcad +#if a2024 || zcad using ArgumentNullException = IFoxCAD.Basal.ArgumentNullEx; // ReSharper disable ClassWithVirtualMembersNeverInherited.Global @@ -184,7 +184,8 @@ public void DatabaseEntityDraw(WorldDrawEvent action) /// protected override bool WorldDraw(WorldDraw draw) { - _worldDrawFlag = true; + //为0时使用异步刷新,可有效减少处理较多图元时的卡顿问题 + _worldDrawFlag = _drawEntitys.Count != 0; WorldDrawEvent?.Invoke(draw); _drawEntities.ForEach(ent => { -- Gitee