Browse Source

Fixed toJSON typos. See #6252.

Mr.doob 10 years ago
parent
commit
2f83cb0005
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/materials/MeshNormalMaterial.js
  2. 1 1
      src/materials/PointCloudMaterial.js

+ 1 - 1
src/materials/MeshNormalMaterial.js

@@ -45,7 +45,7 @@ THREE.MeshNormalMaterial.prototype.clone = function () {
 
 };
 
-THREE.MeshPhongMaterial.prototype.toJSON = function () {
+THREE.MeshNormalMaterial.prototype.toJSON = function () {
 
 	var data = THREE.Material.prototype.toJSON.call( this );
 

+ 1 - 1
src/materials/PointCloudMaterial.js

@@ -65,7 +65,7 @@ THREE.PointCloudMaterial.prototype.clone = function () {
 
 };
 
-THREE.MeshDepthMaterial.prototype.toJSON = function () {
+THREE.PointCloudMaterial.prototype.toJSON = function () {
 
 	var data = THREE.Material.prototype.toJSON.call( this );