二三维
This commit is contained in:
@ -231,7 +231,11 @@ async function syncData2(sdk, id, entityId) {
|
||||
if (obj.showView == 3) {
|
||||
options.show = false
|
||||
}
|
||||
let target = await new obj.constructor(sdk2D, options)
|
||||
let target = await sdk2D.entityMap.get(options.id)
|
||||
if(target) {
|
||||
await target.remove()
|
||||
}
|
||||
target = await new obj.constructor(sdk2D, options)
|
||||
target.onClick = obj.onClick
|
||||
target.onRightClick = obj.onRightClick
|
||||
target.onMouseMove = obj.onMouseMove
|
||||
|
Reference in New Issue
Block a user