|
@@ -27,7 +27,7 @@ export const getSupperPanoModel = () => {
|
|
};
|
|
};
|
|
|
|
|
|
export const analysisPose = (pose: Pose) => {
|
|
export const analysisPose = (pose: Pose) => {
|
|
- if ('model' in pose) {
|
|
|
|
|
|
+ if ('model' in pose && pose.model) {
|
|
let info: GuidePath['panoInfo'] | undefined = undefined
|
|
let info: GuidePath['panoInfo'] | undefined = undefined
|
|
let fuseMode: FuseModel
|
|
let fuseMode: FuseModel
|
|
for (const [k, v] of Array.from(sceneModelMap.entries())) {
|
|
for (const [k, v] of Array.from(sceneModelMap.entries())) {
|
|
@@ -54,7 +54,7 @@ export const analysisPose = (pose: Pose) => {
|
|
|
|
|
|
export const analysisPoseInfo = (info: ReturnType<typeof analysisPose>) => {
|
|
export const analysisPoseInfo = (info: ReturnType<typeof analysisPose>) => {
|
|
let pose: Pose = { target: info.target, position: info.position }
|
|
let pose: Pose = { target: info.target, position: info.position }
|
|
- if ('panoInfo' in info) {
|
|
|
|
|
|
+ if ('panoInfo' in info && info.panoInfo) {
|
|
let sceneModel: SceneModel
|
|
let sceneModel: SceneModel
|
|
for (const [k, v] of Array.from(sceneModelMap.entries())) {
|
|
for (const [k, v] of Array.from(sceneModelMap.entries())) {
|
|
if (k.id === info.panoInfo.modelId) {
|
|
if (k.id === info.panoInfo.modelId) {
|