From b48c06181a005c1c17631b20a524667d77d45629 Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Thu, 1 Oct 2020 18:13:24 +0200 Subject: [PATCH] XJ vertex type 2 is now correctly parsed. --- src/core/data_formats/parsing/ninja/xj.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/data_formats/parsing/ninja/xj.ts b/src/core/data_formats/parsing/ninja/xj.ts index 7ae9c3d0..7c775666 100644 --- a/src/core/data_formats/parsing/ninja/xj.ts +++ b/src/core/data_formats/parsing/ninja/xj.ts @@ -93,6 +93,9 @@ function parse_vertex_info_table(cursor: Cursor, vertex_info_table_offset: numbe let uv: Vec2 | undefined; switch (vertex_type) { + case 2: + normal = cursor.vec3_f32(); + break; case 3: normal = cursor.vec3_f32(); uv = cursor.vec2_f32();