Bläddra i källkod

vertexColors should default to 'THREE.NoColors' not 'false' - Fixes #2180

aaron 11 år sedan
förälder
incheckning
fd28624959
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      src/materials/LineBasicMaterial.js
  2. 1 1
      src/materials/PointCloudMaterial.js

+ 1 - 1
src/materials/LineBasicMaterial.js

@@ -30,7 +30,7 @@ THREE.LineBasicMaterial = function ( parameters ) {
 	this.linecap = 'round';
 	this.linecap = 'round';
 	this.linejoin = 'round';
 	this.linejoin = 'round';
 
 
-	this.vertexColors = false;
+	this.vertexColors = THREE.NoColors;
 
 
 	this.fog = true;
 	this.fog = true;
 
 

+ 1 - 1
src/materials/PointCloudMaterial.js

@@ -30,7 +30,7 @@ THREE.PointCloudMaterial = function ( parameters ) {
 	this.size = 1;
 	this.size = 1;
 	this.sizeAttenuation = true;
 	this.sizeAttenuation = true;
 
 
-	this.vertexColors = false;
+	this.vertexColors = THREE.NoColors;
 
 
 	this.fog = true;
 	this.fog = true;