@eturnity/eturnity_3d 7.2.4-qa-7.6.2 → 7.2.4-qa-7.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -35,18 +35,18 @@ export default {
|
|
|
35
35
|
let meshTop = this.meshes.panelsMeshes[panel.id + '_top']
|
|
36
36
|
let meshSide = this.meshes.panelsMeshes[panel.id + '_side']
|
|
37
37
|
if (meshTop || meshSide) {
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
38
|
+
this.clearMeshFromScene(meshTop, this.scene)
|
|
39
|
+
this.clearMeshFromScene(meshSide, this.scene)
|
|
40
40
|
}
|
|
41
41
|
})
|
|
42
42
|
)
|
|
43
43
|
)
|
|
44
44
|
},
|
|
45
|
-
|
|
46
|
-
if (!mesh || !
|
|
45
|
+
clearMeshFromScene(mesh, scene) {
|
|
46
|
+
if (!mesh || !scene) {
|
|
47
47
|
return
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
scene.remove(mesh)
|
|
50
50
|
if (mesh.geometry && mesh.geometry.dispose) {
|
|
51
51
|
mesh.geometry.dispose()
|
|
52
52
|
mesh.geometry = null
|
|
@@ -72,14 +72,14 @@ export default {
|
|
|
72
72
|
clearEdgesRemovedOnes() {
|
|
73
73
|
Object.values(this.meshes['edgeMeshes']).forEach((mesh) => {
|
|
74
74
|
if (!this.edgeIds.includes(mesh.userData.edgeId)) {
|
|
75
|
-
this.
|
|
75
|
+
this.clearMeshFromScene(mesh, this.scene)
|
|
76
76
|
}
|
|
77
77
|
})
|
|
78
78
|
},
|
|
79
79
|
clearRemovedOnes(type) {
|
|
80
80
|
Object.values(this.meshes[type]).forEach((mesh) => {
|
|
81
81
|
if (!this.polygonIds.includes(mesh.userData.polygonId)) {
|
|
82
|
-
this.
|
|
82
|
+
this.clearMeshFromScene(mesh, this.scene)
|
|
83
83
|
}
|
|
84
84
|
})
|
|
85
85
|
},
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
methods: {
|
|
35
35
|
renderImageOverlayOnBackground() {
|
|
36
36
|
if (!this.imageOverlay || !this.imageOverlayMaterial) {
|
|
37
|
-
this.
|
|
37
|
+
this.clearMeshFromScene(this.meshes.backgroundMesh, this.scene)
|
|
38
38
|
this.meshes.backgroundMesh = null
|
|
39
39
|
return
|
|
40
40
|
}
|
|
@@ -45,14 +45,14 @@ export default {
|
|
|
45
45
|
poly.layer == 'user_deactivated_panel'
|
|
46
46
|
)
|
|
47
47
|
) {
|
|
48
|
-
this.
|
|
48
|
+
this.clearMeshFromScene(mesh, this.scene)
|
|
49
49
|
}
|
|
50
50
|
//clear panel on moduleField with overriden number of panel
|
|
51
51
|
let panel = this.polygons.find(
|
|
52
52
|
(poly) => mesh.userData.polygonId == poly.id
|
|
53
53
|
)
|
|
54
54
|
if (!panel || panel.moduleField.data.number_of_panels_override) {
|
|
55
|
-
this.
|
|
55
|
+
this.clearMeshFromScene(mesh, this.scene)
|
|
56
56
|
}
|
|
57
57
|
})
|
|
58
58
|
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
182
182
|
)
|
|
183
183
|
//if no panels, no materialIds,
|
|
184
184
|
for (let materialId of materialIdsToRemove) {
|
|
185
|
-
this.
|
|
185
|
+
this.clearMeshFromScene(this.mergedPanelTopMeshes[materialId], this.scene)
|
|
186
186
|
delete this.mergedPanelTopMeshes[materialId]
|
|
187
187
|
}
|
|
188
188
|
this.mergedPanelSideMesh = this.updateOrCreateMergedMesh(
|