2
0
Эх сурвалжийг харах

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

Mr.doob 13 жил өмнө
parent
commit
e60c179536

+ 6 - 1
src/materials/Material.js

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