@eturnity/eturnity_3d 1.0.18 → 1.0.20
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 +1 -1
- package/src/helper/renderMixin.js +6 -11
package/package.json
CHANGED
|
@@ -201,12 +201,6 @@ export default {
|
|
|
201
201
|
method: this.renderBuilding,
|
|
202
202
|
arg: []
|
|
203
203
|
})
|
|
204
|
-
methodList.push({
|
|
205
|
-
name: 'renderPanels',
|
|
206
|
-
method: this.renderPanels,
|
|
207
|
-
arg: []
|
|
208
|
-
})
|
|
209
|
-
break
|
|
210
204
|
case 'selectedRoofChange':
|
|
211
205
|
methodList.push({
|
|
212
206
|
name: 'renderFlatRoofs',
|
|
@@ -740,11 +734,12 @@ export default {
|
|
|
740
734
|
},
|
|
741
735
|
clearPanelsFromChangingRoofs(roofIds){
|
|
742
736
|
const roofs=this.polygons.filter(polygon=>roofIds.includes(polygon.id))
|
|
743
|
-
roofs.moduleFields.forEach(mf=>mf.panels.forEach(panel=>{
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
737
|
+
roofs.forEach(roof=>roof.moduleFields.forEach(mf=>mf.panels.forEach(panel=>{
|
|
738
|
+
if(this.meshes.panelsMeshes[panel.id+'_top']){
|
|
739
|
+
this.clearMesh(mesh)
|
|
740
|
+
}
|
|
741
|
+
})
|
|
742
|
+
)
|
|
748
743
|
)
|
|
749
744
|
},
|
|
750
745
|
renderPanels() {
|