|
@@ -1,5 +1,5 @@
|
|
|
import { sdk } from './sdk'
|
|
|
-import { models, taggings, isEdit, sysBus, getModelShowVariable } from '@/store'
|
|
|
+import { models, taggings, isEdit, sysBus, getModelShowVariable, ModelType } from '@/store'
|
|
|
import { toRaw, watchEffect, ref, watch } from 'vue'
|
|
|
import { viewModeStack, custom, getResource } from '@/env'
|
|
|
import {
|
|
@@ -27,10 +27,12 @@ const associationModels = (sdk: SDK) => {
|
|
|
if (getSceneModel(item)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ console.log(getResource(item.url))
|
|
|
|
|
|
const itemRaw = toRaw(item)
|
|
|
const sceneModel = sdk.addModel({
|
|
|
...itemRaw,
|
|
|
+ type: ModelType.SWMX,
|
|
|
url: getResource(item.url)
|
|
|
})
|
|
|
sceneModelMap.set(itemRaw, sceneModel)
|