Reformat parameters
This commit is contained in:
parent
052e101e1c
commit
3018c6f5bd
|
@ -18,7 +18,9 @@ export default class Model {
|
|||
|
||||
load() {
|
||||
// Load model with ObjectLoader
|
||||
this.loader.load(Config.model.path, obj => {
|
||||
this.loader.load(
|
||||
Config.model.path,
|
||||
obj => {
|
||||
obj.traverse(child => {
|
||||
if(child instanceof THREE.Mesh) {
|
||||
// Create material for mesh and set its map to texture by name from preloaded textures
|
||||
|
@ -44,6 +46,9 @@ export default class Model {
|
|||
|
||||
obj.scale.multiplyScalar(Config.model.scale);
|
||||
this.scene.add(obj);
|
||||
}, Helpers.logProgress(), Helpers.logError());
|
||||
},
|
||||
Helpers.logProgress(),
|
||||
Helpers.logError()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue