提交 afb0dd4a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11369 from Mugen87/dev

Clean up log messages
......@@ -189,7 +189,7 @@ Object.assign( AnimationClip, {
if ( ! animation ) {
console.error( " no animation in JSONLoader data" );
console.error( 'THREE.AnimationClip: No animation in JSONLoader data.' );
return null;
}
......
......@@ -153,9 +153,8 @@ Object.assign( AnimationObjectGroup.prototype, {
} else if ( objects[ index ] !== knownObject ) {
console.error( "Different objects with the same UUID " +
"detected. Clean the caches or recreate your " +
"infrastructure when reloading scenes..." );
console.error( 'THREE.AnimationObjectGroup: Different objects with the same UUID ' +
'detected. Clean the caches or recreate your infrastructure when reloading scenes.' );
} // else the object is already where we want it to be
......
......@@ -81,7 +81,7 @@ KeyframeTrackPrototype = {
}
console.warn( message );
console.warn( 'THREE.KeyframeTrackPrototype:', message );
return;
}
......@@ -192,7 +192,7 @@ KeyframeTrackPrototype = {
var valueSize = this.getValueSize();
if ( valueSize - Math.floor( valueSize ) !== 0 ) {
console.error( "invalid value size in track", this );
console.error( 'THREE.KeyframeTrackPrototype: Invalid value size in track.', this );
valid = false;
}
......@@ -204,7 +204,7 @@ KeyframeTrackPrototype = {
if ( nKeys === 0 ) {
console.error( "track is empty", this );
console.error( 'THREE.KeyframeTrackPrototype: Track is empty.', this );
valid = false;
}
......@@ -217,7 +217,7 @@ KeyframeTrackPrototype = {
if ( typeof currTime === 'number' && isNaN( currTime ) ) {
console.error( "time is not a valid number", this, i, currTime );
console.error( 'THREE.KeyframeTrackPrototype: Time is not a valid number.', this, i, currTime );
valid = false;
break;
......@@ -225,7 +225,7 @@ KeyframeTrackPrototype = {
if ( prevTime !== null && prevTime > currTime ) {
console.error( "out of order keys", this, i, currTime, prevTime );
console.error( 'THREE.KeyframeTrackPrototype: Out of order keys.', this, i, currTime, prevTime );
valid = false;
break;
......@@ -245,7 +245,7 @@ KeyframeTrackPrototype = {
if ( isNaN( value ) ) {
console.error( "value is not a valid number", this, i, value );
console.error( 'THREE.KeyframeTrackPrototype: Value is not a valid number.', this, i, value );
valid = false;
break;
......
......@@ -480,7 +480,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
// ensure there is a value node
if ( ! targetObject ) {
console.error( " trying to update node for track: " + this.path + " but it wasn't found." );
console.error( 'THREE.PropertyBinding: Trying to update node for track: ' + this.path + ' but it wasn\'t found.' );
return;
}
......@@ -496,14 +496,14 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.material ) {
console.error( ' can not bind to material as node does not have a material', this );
console.error( 'THREE.PropertyBinding: Can not bind to material as node does not have a material.', this );
return;
}
if ( ! targetObject.material.materials ) {
console.error( ' can not bind to material.materials as node.material does not have a materials array', this );
console.error( 'THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.', this );
return;
}
......@@ -516,7 +516,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.skeleton ) {
console.error( ' can not bind to bones as node does not have a skeleton', this );
console.error( 'THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.', this );
return;
}
......@@ -544,7 +544,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( targetObject[ objectName ] === undefined ) {
console.error( ' can not bind to objectName of node, undefined', this );
console.error( 'THREE.PropertyBinding: Can not bind to objectName of node undefined.', this );
return;
}
......@@ -558,7 +558,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( targetObject[ objectIndex ] === undefined ) {
console.error( " trying to bind to objectIndex of objectName, but is undefined:", this, targetObject );
console.error( 'THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.', this, targetObject );
return;
}
......@@ -576,8 +576,8 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
var nodeName = parsedPath.nodeName;
console.error( " trying to update property for track: " + nodeName +
'.' + propertyName + " but it wasn't found.", targetObject );
console.error( 'THREE.PropertyBinding: Trying to update property for track: ' + nodeName +
'.' + propertyName + ' but it wasn\'t found.', targetObject );
return;
}
......@@ -611,7 +611,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
// support resolving morphTarget names into indices.
if ( ! targetObject.geometry ) {
console.error( ' can not bind to morphTargetInfluences becasuse node does not have a geometry', this );
console.error( 'THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.', this );
return;
}
......@@ -620,7 +620,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.geometry.morphAttributes ) {
console.error( ' can not bind to morphTargetInfluences becasuse node does not have a geometry.morphAttributes', this );
console.error( 'THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.', this );
return;
}
......@@ -641,7 +641,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.geometry.morphTargets ) {
console.error( ' can not bind to morphTargetInfluences becasuse node does not have a geometry.morphTargets', this );
console.error( 'THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.', this );
return;
}
......
......@@ -2516,7 +2516,7 @@ function WebGLRenderer( parameters ) {
if ( textureUnit >= capabilities.maxTextures ) {
console.warn( 'WebGLRenderer: trying to use ' + textureUnit + ' texture units while this GPU supports only ' + capabilities.maxTextures );
console.warn( 'THREE.WebGLRenderer: Trying to use ' + textureUnit + ' texture units while this GPU supports only ' + capabilities.maxTextures );
}
......
......@@ -26,7 +26,7 @@ function WebGLAttributes( gl ) {
} else if ( array instanceof Float64Array ) {
console.warn( "Unsupported data buffer format: Float64Array" );
console.warn( 'THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.' );
} else if ( array instanceof Uint16Array ) {
......
......@@ -812,7 +812,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
} catch ( error ) {
console.error( error );
console.error( 'THREE.WebGLState:', error );
}
......@@ -826,7 +826,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
} catch ( error ) {
console.error( error );
console.error( 'THREE.WebGLState:', error );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册