|
@@ -132,8 +132,14 @@ watch(
|
|
|
const reset = async () => {
|
|
const reset = async () => {
|
|
|
if (custom.currentModel && (await Dialog.confirm("确定恢复默认?此操作无法撤销"))) {
|
|
if (custom.currentModel && (await Dialog.confirm("确定恢复默认?此操作无法撤销"))) {
|
|
|
const rotation = getSceneModel(custom.currentModel)!.getDefaultRotation();
|
|
const rotation = getSceneModel(custom.currentModel)!.getDefaultRotation();
|
|
|
|
|
+ const position = getSceneModel(custom.currentModel)!.getDefaultPosition();
|
|
|
Object.assign(custom.currentModel, {
|
|
Object.assign(custom.currentModel, {
|
|
|
...defaultFuseModelAttrs,
|
|
...defaultFuseModelAttrs,
|
|
|
|
|
+ position: {
|
|
|
|
|
+ x: position.x,
|
|
|
|
|
+ y: position.y,
|
|
|
|
|
+ z: position.z,
|
|
|
|
|
+ },
|
|
|
rotation: {
|
|
rotation: {
|
|
|
x: rotation.x,
|
|
x: rotation.x,
|
|
|
y: rotation.y,
|
|
y: rotation.y,
|