修复模型视点设置问题
parent
6e3b63c1e4
commit
68d9c39caf
|
@ -558,9 +558,13 @@ export default {
|
||||||
let pt = JSON.parse(item.viewPosition)
|
let pt = JSON.parse(item.viewPosition)
|
||||||
if (item.viewPosition != null) {
|
if (item.viewPosition != null) {
|
||||||
if (this.isClient) {
|
if (this.isClient) {
|
||||||
bimRoadmApi.Camera.SetCamera(pt.position, pt.heading, pt.pitch)
|
if (pt["position"] && pt["heading"] && pt["pitch"]) {
|
||||||
|
bimRoadmApi.Camera.SetCamera(pt.position, pt.heading, pt.pitch)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bimRoadmApi.Camera.setViewPort(pt);
|
if (pt["world"]) {
|
||||||
|
bimRoadmApi.Camera.setViewPort(pt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,9 +211,13 @@ export default {
|
||||||
if (item.viewPosition != null) {
|
if (item.viewPosition != null) {
|
||||||
let pt=JSON.parse(item.viewPosition)
|
let pt=JSON.parse(item.viewPosition)
|
||||||
if(this.isClient){
|
if(this.isClient){
|
||||||
api.Camera.SetCamera(pt.position, pt.heading, pt.pitch)
|
if (pt["position"] && pt["heading"] && pt["pitch"]) {
|
||||||
|
api.Camera.SetCamera(pt.position, pt.heading, pt.pitch)
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
api.Camera.setViewPort(pt);
|
if (pt["world"]) {
|
||||||
|
api.Camera.setViewPort(pt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -272,7 +276,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
DelViewpoint(item, index) {
|
DelViewpoint(item, index) {debugger
|
||||||
let that = this;
|
let that = this;
|
||||||
ElMessageBox.confirm(`确定要删除漫游 “${item.name}” 吗?`, "提示", {
|
ElMessageBox.confirm(`确定要删除漫游 “${item.name}” 吗?`, "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
|
|
Loading…
Reference in New Issue