Explorar o código

Fixed toJSON typos. See #6252.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
2f83cb0005
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 );