Browse Source

Incorrect material type being returned in MeshDepthMaterial. Fixes #3186.

Mr.doob 12 years ago
parent
commit
6f7f81d06e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/materials/MeshDepthMaterial.js

+ 1 - 1
src/materials/MeshDepthMaterial.js

@@ -29,7 +29,7 @@ THREE.MeshDepthMaterial.prototype = Object.create( THREE.Material.prototype );
 
 
 THREE.MeshDepthMaterial.prototype.clone = function () {
 THREE.MeshDepthMaterial.prototype.clone = function () {
 
 
-	var material = new THREE.LineBasicMaterial();
+	var material = new THREE.MeshDepthMaterial();
 
 
 	THREE.Material.prototype.clone.call( this, material );
 	THREE.Material.prototype.clone.call( this, material );