Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Commit 3e759bc

Browse files
author
dominic
committed
minor housekeeping
1 parent 7b05833 commit 3e759bc

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/aframe/component/architecture-toolkit/common/data-to-materials.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ export default function dataToMaterials(data) {
66

77
let materials={}
88

9-
var materialKeys = Object.keys(data).filter(function(key) {
9+
Object.keys(data).filter(function(key) {
1010
return key.indexOf('material_') > -1
11-
})
12-
13-
materialKeys.forEach(function(key) {
11+
}).forEach(function(key) {
1412
var mesh = key.replace('material_', '')
1513
materials[mesh] = data[key]
1614
})

src/aframe/component/architecture-toolkit/kitchen.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ export default {
2222
// remove old mesh
2323
this.remove()
2424

25-
// get defaults and
2625
let attributes = cloneDeep(data)
2726

2827
attributes.materials = dataToMaterials(data)
2928

3029
// get meshes and materials
31-
// promised base because it loads external meshes
30+
// promise base because it loads external meshes
3231
var data3d = await kitchenData3d(attributes)
3332

34-
3533
// create new one
3634
this_.mesh = new THREE.Object3D()
3735
this_.data3dView = new io3d.aFrame.three.Data3dView({parent: this_.mesh})

0 commit comments

Comments
 (0)