!2302 修复:智能UCS开关点击

pull/2305/MERGE
黄诗津 1 year ago committed by ChenX
parent 2376956cb4
commit 2e316e045e

@ -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);

@ -580,7 +580,7 @@ export class DownPanel extends React.Component<{ store: DownPanelStore; }, {}>
position={Position.TOP}
>
<Switch
checked={this.downStore.EnableSmartUCS}
checked={this.downStore.smartUCS}
label="智能UCS"
style={switchStyle}
alignIndicator={Alignment.RIGHT}

@ -163,7 +163,7 @@ export class DownPanelStore
@observable isTopToolBarShowMin: boolean = false;
@observable isBottomToolBarShowMin: boolean = false;
@observable showHideSync: boolean = false; //显隐同步
@observable EnableSmartUCS: boolean = false; //智能UCS
@observable smartUCS: boolean = false; //智能UCS
private timeId;
private constructor()
{
@ -234,7 +234,7 @@ export class DownPanelStore
fontName: this.fontName,
lightsData: this.lightsData.map(l => 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()

Loading…
Cancel
Save