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

Merge pull request #20912 from 1993heqiang/local_dev

More detailed error messages when using invalid object types.
Mr.doob 4 жил өмнө
parent
commit
bd3da04442

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -460,7 +460,7 @@ THREE.GLTFLoader = ( function () {
 				break;
 
 			default:
-				throw new Error( 'THREE.GLTFLoader: Unexpected light type, "' + lightDef.type + '".' );
+				throw new Error( 'THREE.GLTFLoader: Unexpected light type: ' + lightDef.type );
 
 		}
 

+ 1 - 1
examples/jsm/loaders/GLTFLoader.js

@@ -525,7 +525,7 @@ var GLTFLoader = ( function () {
 				break;
 
 			default:
-				throw new Error( 'THREE.GLTFLoader: Unexpected light type, "' + lightDef.type + '".' );
+				throw new Error( 'THREE.GLTFLoader: Unexpected light type: ' + lightDef.type );
 
 		}
 

+ 1 - 1
src/core/Raycaster.js

@@ -86,7 +86,7 @@ Object.assign( Raycaster.prototype, {
 
 		} else {
 
-			console.error( 'THREE.Raycaster: Unsupported camera type.' );
+			console.error( 'THREE.Raycaster: Unsupported camera type: ' + camera.type );
 
 		}