@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_3d",
3
3
  "private": false,
4
- "version": "1.0.18",
4
+ "version": "1.0.20",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -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
- if(this.meshes.panelsMeshes[panel.id+'_top']){
745
- this.clearMesh(mesh)
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() {