src/components/obj-model.js
function () {
    var material = this.el.components.material;
    if (!material) { return; }
    this.model.traverse(function (child) {
      if (child instanceof THREE.Mesh) {
        child.material = material.material;
      }
    });
  }
function () {
    var material = this.el.components.material;
    if (!material) { return; }
    this.model.traverse(function (child) {
      if (child instanceof THREE.Mesh) {
        child.material = material.material;
      }
    });
  }
function ( ) { var material = this . el . components . material ; if ( ! material ) { return ; } this . model . traverse ( function ( child ) { if ( child instanceof THREE . Mesh ) { child . material = material . material ; } } ) ; }
Apply material from material component recursively.
Apply material from material component recursively .