From c01824e74d36c440ba14466274d6c39672edf172 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Tue, 29 Sep 2026 17:54:07 -0500 Subject: [PATCH] test(ugc): pin where the UGC server's own .nif vertices read back Co-Authored-By: Claude Opus 5.5 --- tests/dUgcTests/UgcTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/dUgcTests/UgcTests.cpp b/tests/dUgcTests/UgcTests.cpp index 5b42bab77..382466aa5 100644 --- a/tests/dUgcTests/UgcTests.cpp +++ b/tests/dUgcTests/UgcTests.cpp @@ -252,6 +252,7 @@ TEST(UgcFormats, NifReadsBack) { EXPECT_TRUE(model->skipped.empty()); ASSERT_EQ(model->meshes.size(), 2u); EXPECT_EQ(model->meshes[0].indices.size(), 3u); + EXPECT_EQ(model->meshes[0].positions, (std::vector{ 0, 0, 0, 1, 0, 0, 0, 1, 0 })); // where they were, upright EXPECT_EQ(model->meshes[0].colors[0], 255); // Every shape blends by its vertex alpha, as the game's own brick models do EXPECT_TRUE(model->meshes[0].material.alphaBlend); @@ -627,6 +628,7 @@ TEST(UgcFormats, LodNifReadsBack) { EXPECT_TRUE(lod0->skipped.empty()); ASSERT_EQ(lod0->meshes.size(), 1u); EXPECT_EQ(lod0->meshes[0].indices.size(), 6u); + EXPECT_EQ(lod0->meshes[0].positions, (std::vector{ 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0 })); EXPECT_TRUE(lod0->nodes.contains("S01_Opaque_Model")); EXPECT_TRUE(lod0->nodes.contains("LOD_0")); const auto lod1 = NifFile::Parse(nif, 1, error);