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()