@eturnity/eturnity_3d 1.0.35 → 1.0.36

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.35",
4
+ "version": "1.0.36",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -325,19 +325,19 @@ export default {
325
325
  let mesh=this.meshes.roofMeshes[roof.id]
326
326
  mesh.material=this.material.roof
327
327
  console.log(this.material.roof)
328
- if(this.material.roof.project){
328
+ if(this.material.roof && this.material.roof.project){
329
329
  this.material.roof.project(mesh)
330
330
  }
331
331
  //obstacle on roof
332
332
  roof.holes.filter(p=>p.layer=="obstacle").forEach(obstacle=>{
333
333
  let meshObstacle=this.meshes.obstacleMeshes[obstacle.id + '-' + roof.id + '_top']
334
334
  meshObstacle.material=this.material.roof
335
- if(this.material.roof.project) this.material.roof.project(meshObstacle)
335
+ if(this.material.roof && this.material.roof.project) this.material.roof.project(meshObstacle)
336
336
  })
337
337
  })
338
338
  //background tile
339
339
  this.meshes.backgroundMesh.material=this.material.roof
340
- if(this.material.roof.project) this.material.roof.project(this.meshes.backgroundMesh)
340
+ if(this.material.roof && this.material.roof.project) this.material.roof.project(this.meshes.backgroundMesh)
341
341
  },
342
342
  renderBase() {
343
343
  //rendering of walls
@@ -451,7 +451,7 @@ export default {
451
451
  mesh.geometry = geometry
452
452
  if(this.material.roof){
453
453
  mesh.material=this.material.roof
454
- if(this.material.roof.project) this.material.roof.project(mesh)
454
+ if(this.material.roof && this.material.roof.project) this.material.roof.project(mesh)
455
455
  }
456
456
  mesh.frustumCulled = false
457
457
  mesh.updateMatrix()