three-stdlib 2.32.0 → 2.32.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ import { Loader, LoaderUtils, FileLoader, TextureLoader, RepeatWrapping, ClampTo
2
2
  import { unzlibSync } from "fflate";
3
3
  import { NURBSCurve } from "../curves/NURBSCurve.js";
4
4
  import { decodeText } from "../_polyfill/LoaderUtils.js";
5
+ import { UV1 } from "../_polyfill/uv1.js";
5
6
  let fbxTree;
6
7
  let connections;
7
8
  let sceneGraph;
@@ -934,10 +935,9 @@ class GeometryParser {
934
935
  geo.setAttribute("normal", normalAttribute);
935
936
  }
936
937
  buffers.uvs.forEach(function(uvBuffer, i) {
937
- let name = "uv" + (i + 1).toString();
938
- if (i === 0) {
939
- name = "uv";
940
- }
938
+ if (UV1 === "uv2")
939
+ i++;
940
+ const name = i === 0 ? "uv" : `uv${i}`;
941
941
  geo.setAttribute(name, new Float32BufferAttribute(buffers.uvs[i], 2));
942
942
  });
943
943
  if (geoInfo.material && geoInfo.material.mappingType !== "AllSame") {