Update three.js.

This commit is contained in:
kovacsv 2021-12-25 10:33:50 +01:00
parent b4f10e2ca1
commit 1df376745f
6 changed files with 10 additions and 11 deletions

2
libs/three.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1145,7 +1145,7 @@
case 'transparent':
data[ child.nodeName ] = {
opaque: child.getAttribute( 'opaque' ),
opaque: child.hasAttribute( 'opaque' ) ? child.getAttribute( 'opaque' ) : 'A_ONE',
data: parseEffectParameter( child )
};
break;
@ -1597,7 +1597,6 @@
break;
default:
material.opacity = 1 - transparency.float;
console.warn( 'THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.', transparent.opaque );
}

View File

@ -9,11 +9,10 @@
* Morph normals / blend shape normals
*
* FBX format references:
* https://wiki.blender.org/index.php/User:Mont29/Foundation/FBX_File_Structure
* http://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_index_html (C++ SDK reference)
* https://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_index_html (C++ SDK reference)
*
* Binary format specification:
* https://code.blender.org/2013/08/fbx-binary-file-format-specification/
* Binary format specification:
* https://code.blender.org/2013/08/fbx-binary-file-format-specification/
*/
let fbxTree;

View File

@ -225,7 +225,7 @@
}
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
if ( j === 0 ) firstPoint.copy( point );
}
@ -382,7 +382,7 @@
}
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
if ( j === 0 ) firstPoint.copy( point );
}

View File

@ -139,7 +139,7 @@
const StringLiteral = createToken( {
name: 'StringLiteral',
pattern: /"(:?[^\\"\n\r]+|\\(:?[bfnrtv"\\/]|u[0-9a-fA-F]{4}))*"/
pattern: /"(?:[^\\"\n\r]|\\[bfnrtv"\\/]|\\u[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])*"/
} );
const HexLiteral = createToken( {
name: 'HexLiteral',
@ -1282,6 +1282,7 @@
}
texture = new THREE.DataTexture( data, width, height, useAlpha === true ? THREE.RGBAFormat : THREE.RGBFormat );
texture.needsUpdate = true;
texture.__type = textureType; // needed for material modifications
break;

View File

@ -32,7 +32,7 @@
"draco3d": "1.5.0",
"fflate": "0.7.2",
"rhino3dm": "7.11.1",
"three": "0.135.0",
"three": "0.136.0",
"web-ifc": "0.0.32"
},
"eslintConfig": {