|
@@ -800,12 +800,12 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- // <= r87. Remove when reasonable.
|
|
|
+ // <= r87. Remove when reasonable.
|
|
|
|
|
|
- offset = uvScaleMap.offset;
|
|
|
- repeat = uvScaleMap.repeat;
|
|
|
+ offset = uvScaleMap.offset;
|
|
|
+ repeat = uvScaleMap.repeat;
|
|
|
|
|
|
- uniforms.offsetRepeat.value.set( offset.x, offset.y, repeat.x, repeat.y );
|
|
|
+ uniforms.offsetRepeat.value.set( offset.x, offset.y, repeat.x, repeat.y );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2067,7 +2067,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
} else if ( cameraDef.type === 'orthographic' ) {
|
|
|
|
|
|
- camera = new THREE.OrthographicCamera( params.xmag / -2, params.xmag / 2, params.ymag / 2, params.ymag / -2, params.znear, params.zfar );
|
|
|
+ camera = new THREE.OrthographicCamera( params.xmag / - 2, params.xmag / 2, params.ymag / 2, params.ymag / - 2, params.znear, params.zfar );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2242,7 +2242,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
// Nothing in the node definition indicates whether it is a Bone or an
|
|
|
// Object3D. Use the skins' joint references to mark bones.
|
|
|
- for ( var skinIndex = 0; skinIndex < skins.length; skinIndex ++ ) {
|
|
|
+ for ( var skinIndex = 0; skinIndex < skins.length; skinIndex ++ ) {
|
|
|
|
|
|
var joints = skins[ skinIndex ].joints;
|
|
|
|
|
@@ -2259,7 +2259,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
// references and rename instances below.
|
|
|
//
|
|
|
// Example: CesiumMilkTruck sample model reuses "Wheel" meshes.
|
|
|
- for ( var nodeIndex = 0; nodeIndex < nodes.length; nodeIndex ++ ) {
|
|
|
+ for ( var nodeIndex = 0; nodeIndex < nodes.length; nodeIndex ++ ) {
|
|
|
|
|
|
var nodeDef = nodes[ nodeIndex ];
|
|
|
|
|
@@ -2271,7 +2271,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
}
|
|
|
|
|
|
- meshReferences[ nodeDef.mesh ]++;
|
|
|
+ meshReferences[ nodeDef.mesh ] ++;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2297,7 +2297,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
if ( meshReferences[ nodeDef.mesh ] > 1 ) {
|
|
|
|
|
|
- mesh.name += '_instance_' + meshUses[ nodeDef.mesh ]++;
|
|
|
+ mesh.name += '_instance_' + meshUses[ nodeDef.mesh ] ++;
|
|
|
|
|
|
}
|
|
|
|