Parcourir la source

Fixed toJSON typos. See #6252.

Mr.doob il y a 10 ans
Parent
commit
2f83cb0005
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 );