2
0
Эх сурвалжийг харах

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

Mr.doob 12 жил өмнө
parent
commit
6f7f81d06e

+ 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 );