@eturnity/eturnity_3d 1.0.34 → 1.0.35

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.34",
4
+ "version": "1.0.35",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -332,12 +332,12 @@ export default {
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
- this.material.roof.project(meshObstacle)
335
+ if(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
- this.material.roof.project(this.meshes.backgroundMesh)
340
+ if(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
- this.material.roof.project(mesh)
454
+ if(this.material.roof.project) this.material.roof.project(mesh)
455
455
  }
456
456
  mesh.frustumCulled = false
457
457
  mesh.updateMatrix()
@@ -469,7 +469,7 @@ export default {
469
469
  this.scene.add(mesh)
470
470
  if(this.material.roof){
471
471
  mesh.material=this.material.roof
472
- this.material.roof.project(mesh)
472
+ if(this.material.roof.project) this.material.roof.project(mesh)
473
473
  }
474
474
  mesh.frustumCulled = false
475
475
  this.meshes.roofMeshes[roofPolygon.id] = mesh
@@ -703,7 +703,7 @@ export default {
703
703
  geometrySide.dispose()
704
704
  if(this.material.roof){
705
705
  mesh.material=this.material.roof
706
- this.material.roof.project(mesh)
706
+ if(this.material.roof.project) this.material.roof.project(mesh)
707
707
  }
708
708
  mesh.matrixAutoUpdate = false
709
709
  meshSide.matrixAutoUpdate = false