From 2e316e045e58f002e2890281d18970aa0e65c2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=AF=97=E6=B4=A5?= <2723065175@qq.com> Date: Tue, 18 Jul 2023 02:15:43 +0000 Subject: [PATCH] =?UTF-8?q?!2302=20=E4=BF=AE=E5=A4=8D:=E6=99=BA=E8=83=BDUC?= =?UTF-8?q?S=E5=BC=80=E5=85=B3=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/UCSRAII.ts | 2 +- src/UI/Components/Panel.tsx | 2 +- src/UI/Store/DownPanelStore.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/UCSRAII.ts b/src/Editor/UCSRAII.ts index 102223042..4a644e750 100644 --- a/src/Editor/UCSRAII.ts +++ b/src/Editor/UCSRAII.ts @@ -10,7 +10,7 @@ import { PromptPointResult } from "./PromptResult"; export function GetPointUCS(ptRes: PromptPointResult): Matrix4 | undefined { const downPanelStore = DownPanelStore.GetInstance(); - if (downPanelStore.EnableSmartUCS && ptRes.intersection) + if (downPanelStore.smartUCS && ptRes.intersection) { let ucs = app.Editor.UCSMatrix; let ucsN = new Vector3().setFromMatrixColumn(ucs, 2); diff --git a/src/UI/Components/Panel.tsx b/src/UI/Components/Panel.tsx index b15a1e7c0..3526b3090 100644 --- a/src/UI/Components/Panel.tsx +++ b/src/UI/Components/Panel.tsx @@ -580,7 +580,7 @@ export class DownPanel extends React.Component<{ store: DownPanelStore; }, {}> position={Position.TOP} > l.enable), showHideSync: this.showHideSync, - smartUCS: this.EnableSmartUCS, + smartUCS: this.smartUCS, }; } async Upload() @@ -316,7 +316,7 @@ export class DownPanelStore this.SetSnapMode(); this.showType = (this.isSmallScreen ? !this.isLeftToolBarShowMin : !this.isLeftToolBarShow) ? this.showType ^ ToolBarType.lefttoolbar : this.showType | ToolBarType.lefttoolbar; this.showHideSync = config.showHideSync ?? false; - this.EnableSmartUCS = config.smartUCS ?? false; + this.smartUCS = config.smartUCS ?? false; } toggleLeftToolBarShow()