|
@@ -977,7 +977,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
})
|
|
|
let lastState = {}
|
|
|
model.addEventListener('transformChanged', (e) => {
|
|
|
- let msg = {byControl:e.byControl} //byControl代表是手动用控制轴修改
|
|
|
+ let msg = {byControl:!!e.byControl} //byControl代表是手动用控制轴修改
|
|
|
if (!lastState.position || !model.position.equals(lastState.position)) {
|
|
|
lastState.position = msg.position = model.position.clone()
|
|
|
//console.log('change pos', model.name, model.position.toArray())
|
|
@@ -991,7 +991,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
}
|
|
|
|
|
|
msg = Potree.Common.CloneObject(msg)
|
|
|
- //console.log(model.name, msg)
|
|
|
+ console.log(model.name, msg)
|
|
|
bus.emit('transformChanged', msg)
|
|
|
})
|
|
|
spliceFromArr(model, props, true)
|