|
@@ -90,7 +90,7 @@ import {
|
|
|
} from "@/store";
|
|
|
|
|
|
import { SceneType, uploadMaterialToModel, type Scene } from "@/api";
|
|
|
-import { getSceneModel } from "@/sdk";
|
|
|
+import { activeModel, getSceneModel } from "@/sdk";
|
|
|
import { selectMaterials } from "@/components/materials/quisk";
|
|
|
import { custom } from "@/env";
|
|
|
import { actionItems, currentItem } from "@/views/merge";
|
|
@@ -196,7 +196,8 @@ const addModelHandler = createLoadPack(async (modelIds: number[]) => {
|
|
|
await asyncTimeout(100);
|
|
|
await save();
|
|
|
|
|
|
- custom.currentModel = addModels[addModels.length - 1]
|
|
|
+ activeModel({ showMode: 'fuse', active: addModels[addModels.length - 1] })
|
|
|
+ // custom.currentModel = addModels[addModels.length - 1]
|
|
|
currentItem.value = actionItems[0]
|
|
|
});
|
|
|
|