|
@@ -1486,7 +1486,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
},
|
|
},
|
|
// 添加模型帧
|
|
// 添加模型帧
|
|
addFrame(frame){//pose 至少会有一个关键帧作为默认姿态
|
|
addFrame(frame){//pose 至少会有一个关键帧作为默认姿态
|
|
- console.log('addFrame',frame)
|
|
|
|
|
|
+ //console.log('addFrame',frame)
|
|
let key = {time: frame.time }
|
|
let key = {time: frame.time }
|
|
let getData = (data)=>{
|
|
let getData = (data)=>{
|
|
let info = {}
|
|
let info = {}
|
|
@@ -1519,7 +1519,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
return model.actions?.map(e=>e._clip.name)
|
|
return model.actions?.map(e=>e._clip.name)
|
|
},
|
|
},
|
|
addAction(frame){// 添加模型动作
|
|
addAction(frame){// 添加模型动作
|
|
- console.log('addAction',frame)
|
|
|
|
|
|
+ //console.log('addAction',frame)
|
|
let key = Object.assign({},frame)
|
|
let key = Object.assign({},frame)
|
|
key.weight = key.amplitude || 1 //幅度
|
|
key.weight = key.amplitude || 1 //幅度
|
|
key.speed = key.speed || 1
|
|
key.speed = key.speed || 1
|
|
@@ -1565,7 +1565,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
},
|
|
},
|
|
|
|
|
|
addPath(frame){//走路路径
|
|
addPath(frame){//走路路径
|
|
- console.log('addPath',frame)
|
|
|
|
|
|
+ //console.log('addPath',frame)
|
|
let key = Object.assign({},frame)
|
|
let key = Object.assign({},frame)
|
|
key.path = key.path.path
|
|
key.path = key.path.path
|
|
key.dur = key.duration
|
|
key.dur = key.duration
|