Browse Source

retouch admonition (#25582)

ycw 2 years ago
parent
commit
1b818ae711
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/materials/Material.js

+ 2 - 2
src/materials/Material.js

@@ -118,7 +118,7 @@ class Material extends EventDispatcher {
 
 			if ( newValue === undefined ) {
 
-				console.warn( 'THREE.Material: \'' + key + '\' parameter is undefined.' );
+				console.warn( `THREE.Material: parameter '${ key }' has value of undefined.` );
 				continue;
 
 			}
@@ -127,7 +127,7 @@ class Material extends EventDispatcher {
 
 			if ( currentValue === undefined ) {
 
-				console.warn( 'THREE.' + this.type + ': \'' + key + '\' is not a property of this material.' );
+				console.warn( `THREE.Material: '${ key }' is not a property of THREE.${ this.type }.` );
 				continue;
 
 			}