Pārlūkot izejas kodu

Simplified writing

heqiang 4 gadi atpakaļ
vecāks
revīzija
6f7b07a803

+ 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, "' + camera.type + '".' );
+			console.error( 'THREE.Raycaster: Unsupported camera type: ' + camera.type );
 
 		}