title: Apply Material to a specific child of a THREE.OBJ mesh
body: <p>here's my problem :</p>
  
  <p>I would like to apply a specific material to a child of an obj mesh with Three.js.</p>
  
  <p>But it seems that the material is applied to the parent mesh rather than the child one... I tried different things but every time the last material applied was set to the parent... Am I do it wrong ? Maybe I don't use the right method, any ideas ? </p>
  
  <pre><code>    /* material */
  
  material = new THREE.MeshLambertMaterial({
      color: 0x9B9B9B,
      emissive: 0x050505,
      emissiveIntensity: 0.1
  });
  
  firstChildMaterial = new THREE.MeshLambertMaterial({
      color: 0x9693057,
      emissive: 0x050505,
      emissiveIntensity: 0.1
  });
  
  /* Model */
  
  loader = function (url) {
      scene.remove(object);
      var objLoader = new THREE.OBJLoader();
      objLoader.load(url, function (obj) {
  
          object = obj;
  
          object.traverse(function (child) {
              if (child instanceof THREE.Mesh) {
                  child.material = material;
                  // How can I apply firstChildMaterial to the first child ?…
              }
          });
          scene.add(object);
      });
  };
  </code></pre>
  
  <p>There is a screenshot of the final mesh with the children </p>
  
  <p><a href="http://i.stack.imgur.com/ug3dG.png" rel="nofollow">Screenshot of the console</a></p>
  
  <p>Thank you for the help ! :-) </p>