Browse Source

I guess we can start adding some warning here and there.

Mr.doob 13 years ago
parent
commit
e60c179536
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/materials/Material.js

+ 6 - 1
src/materials/Material.js

@@ -45,7 +45,12 @@ THREE.Material.prototype.setValues = function ( values ) {
 
 		var newValue = values[ key ];
 
-		if ( newValue === undefined ) continue;
+		if ( newValue === undefined ) {
+
+			console.warn( 'THREE.Material: \'' + key + '\' parameter is undefined.' );
+			continue;
+
+		}
 
 		if ( key in this ) {