소스 검색

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

Mr.doob 12 년 전
부모
커밋
6f7f81d06e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 () {
 
-	var material = new THREE.LineBasicMaterial();
+	var material = new THREE.MeshDepthMaterial();
 
 	THREE.Material.prototype.clone.call( this, material );