Limit OBJ importer face vertex count to 4

This commit is contained in:
JannisX11 2023-12-21 00:39:42 +01:00
parent 813da3fe41
commit 3a3fe288b6

View File

@ -2170,7 +2170,8 @@ BARS.defineActions(function() {
vertex_textures: [],
vertex_normals: [],
}
args.forEach(triplet => {
args.forEach((triplet, i) => {
if (i >= 4) return;
let [v, vt, vn] = triplet.split('/').map(v => parseInt(v));
if (!vertex_keys[ v-1 ]) {
vertex_keys[ v-1 ] = mesh.addVertices(vertices[v-1])[0];