|
@@ -170,12 +170,14 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- applyInitVisualToAll({ commit, state, rootState }) {
|
|
|
|
|
|
+ applyInitVisualToAll({ commit, state, rootState }, { vlookat, hlookat }) {
|
|
const currentScene = state.currentScene;
|
|
const currentScene = state.currentScene;
|
|
Array.from(rootState.info.scenes).forEach((item, index) => {
|
|
Array.from(rootState.info.scenes).forEach((item, index) => {
|
|
if (item.type === "pano") {
|
|
if (item.type === "pano") {
|
|
rootState.info.scenes[index]["initVisual"] = {
|
|
rootState.info.scenes[index]["initVisual"] = {
|
|
...currentScene.initVisual,
|
|
...currentScene.initVisual,
|
|
|
|
+ vlookat: vlookat || 0,
|
|
|
|
+ hlookat: hlookat || 0,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|