|
@@ -23,11 +23,11 @@ const associationModels = (sdk: SDK) => {
|
|
|
}
|
|
|
|
|
|
const itemRaw = toRaw(item)
|
|
|
- // const sceneModel = sdk.addModel(itemRaw)
|
|
|
- // sceneModelMap.set(itemRaw, sceneModel)
|
|
|
+ const sceneModel = sdk.addModel(itemRaw)
|
|
|
+ sceneModelMap.set(itemRaw, sceneModel)
|
|
|
|
|
|
- // sceneModel.on('position', pos => item.position = pos)
|
|
|
- // sceneModel.on('rotation', rot => item.rotation = rot)
|
|
|
+ sceneModel.on('position', pos => item.position = pos)
|
|
|
+ sceneModel.on('rotation', rot => item.rotation = rot)
|
|
|
}
|
|
|
for (const item of deleted) {
|
|
|
getSceneModel(item)?.destroy()
|