front correction
This commit is contained in:
parent
e0a9a087a8
commit
45acc5a6e7
|
@ -98,7 +98,13 @@ const loadModels = async () => {
|
|||
item.modelFile.visible = false
|
||||
}
|
||||
|
||||
item.modelFile.position.set(element.x_pos || 0, element.y_pos || 0, element.z_pos || 0)
|
||||
if (item.modelFile.children[0]) {
|
||||
item.modelFile.children[0].position.set(
|
||||
item.modelFile.children[0].position.x + element.x_pos,
|
||||
item.modelFile.children[0].position.y + element.y_pos,
|
||||
item.modelFile.children[0].position.z + element.z_pos
|
||||
)
|
||||
}
|
||||
|
||||
models.value.push(item)
|
||||
|
||||
|
|
Loading…
Reference in New Issue