Browse Source

fix lgtm error

gero3 6 years ago
parent
commit
5cb6d53903
2 changed files with 1 additions and 63 deletions
  1. 1 32
      examples/js/loaders/AssimpLoader.js
  2. 0 31
      examples/jsm/loaders/AssimpLoader.js

+ 1 - 32
examples/js/loaders/AssimpLoader.js

@@ -834,20 +834,6 @@ THREE.AssimpLoader.prototype = {
 
 		}
 
-		function aiColor4D() {
-
-			this.r = 0;
-			this.g = 0;
-			this.b = 0;
-			this.a = 0;
-			this.toTHREE = function () {
-
-				return new THREE.Color( this.r, this.g, this.b, this.a );
-
-			};
-
-		}
-
 		function aiColor3D() {
 
 			this.r = 0;
@@ -856,7 +842,7 @@ THREE.AssimpLoader.prototype = {
 			this.a = 0;
 			this.toTHREE = function () {
 
-				return new THREE.Color( this.r, this.g, this.b, 1 );
+				return new THREE.Color( this.r, this.g, this.b );
 
 			};
 
@@ -1536,17 +1522,6 @@ THREE.AssimpLoader.prototype = {
 
 		}
 
-		function Read_aiColor4D( stream ) {
-
-			var c = new aiColor4D();
-			c.r = readFloat( stream );
-			c.g = readFloat( stream );
-			c.b = readFloat( stream );
-			c.a = readFloat( stream );
-			return c;
-
-		}
-
 		function Read_aiQuaternion( stream ) {
 
 			var v = new aiQuaternion();
@@ -1642,12 +1617,6 @@ THREE.AssimpLoader.prototype = {
 
 		}
 
-		function ReadArray_aiColor4D( stream, data, size ) {
-
-			for ( var i = 0; i < size; i ++ ) data[ i ] = Read_aiColor4D( stream );
-
-		}
-
 		function ReadArray_aiVectorKey( stream, data, size ) {
 
 			for ( var i = 0; i < size; i ++ ) data[ i ] = Read_aiVectorKey( stream );

+ 0 - 31
examples/jsm/loaders/AssimpLoader.js

@@ -856,20 +856,6 @@ AssimpLoader.prototype = {
 
 		}
 
-		function aiColor4D() {
-
-			this.r = 0;
-			this.g = 0;
-			this.b = 0;
-			this.a = 0;
-			this.toTHREE = function () {
-
-				return new Color( this.r, this.g, this.b, this.a );
-
-			};
-
-		}
-
 		function aiColor3D() {
 
 			this.r = 0;
@@ -1558,17 +1544,6 @@ AssimpLoader.prototype = {
 
 		}
 
-		function Read_aiColor4D( stream ) {
-
-			var c = new aiColor4D();
-			c.r = readFloat( stream );
-			c.g = readFloat( stream );
-			c.b = readFloat( stream );
-			c.a = readFloat( stream );
-			return c;
-
-		}
-
 		function Read_aiQuaternion( stream ) {
 
 			var v = new aiQuaternion();
@@ -1664,12 +1639,6 @@ AssimpLoader.prototype = {
 
 		}
 
-		function ReadArray_aiColor4D( stream, data, size ) {
-
-			for ( var i = 0; i < size; i ++ ) data[ i ] = Read_aiColor4D( stream );
-
-		}
-
 		function ReadArray_aiVectorKey( stream, data, size ) {
 
 			for ( var i = 0; i < size; i ++ ) data[ i ] = Read_aiVectorKey( stream );