二三维单独显示状态保存

This commit is contained in:
zh
2025-08-13 21:56:53 +08:00
parent d17b038388
commit a6fb1af6f9
6 changed files with 14 additions and 6 deletions

View File

@ -31,6 +31,7 @@ class Base extends Tools {
this.rightClickCallBack = null
this.picking = true
this.options.host = this.options.host || getHost()
// this.#_showView = this.options.showView || 0
this.setDefaultValue()
// this.sdk.addIncetance(this.options.id, this)
@ -66,7 +67,15 @@ class Base extends Tools {
let sdk2D = get2DSdk().sdkD
if (!sdk2D) {
v = 0
this.#_showView = v
if(this.entity) {
this.entity._showView = v
}
return
}
if (this.sdk === sdk2D) {
this.#_showView = 0
return
}
if (!this.#_showView && !this.show) {
return