|
@@ -128,11 +128,20 @@ watch(
|
|
|
|
|
|
const reset = async () => {
|
|
|
if (custom.currentModel && (await Dialog.confirm("确定恢复默认?此操作无法撤销"))) {
|
|
|
- Object.assign(custom.currentModel, defaultFuseModelAttrs);
|
|
|
+ const rotation = getSceneModel(custom.currentModel)!.getDefaultRotation();
|
|
|
+ Object.assign(custom.currentModel, {
|
|
|
+ ...defaultFuseModelAttrs,
|
|
|
+ rotation: {
|
|
|
+ x: rotation.x,
|
|
|
+ y: rotation.y,
|
|
|
+ z: rotation.z,
|
|
|
+ },
|
|
|
+ });
|
|
|
await nextTick();
|
|
|
custom.currentModel && (custom.currentModel.bottom = 0);
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
useViewStack(() =>
|
|
|
togetherCallback([
|
|
|
showLeftPanoStack.push(ref(true)),
|