mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-03-13 16:58:33 +08:00
Limit OBJ importer face vertex count to 4
This commit is contained in:
parent
813da3fe41
commit
3a3fe288b6
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user