feat(ugc): the color variation settings apply to LU Toolbox in Blender too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 22:49:47 -05:00
parent 73600acb4e
commit 3e5acd42ab
8 changed files with 85 additions and 11 deletions

View File

@@ -197,6 +197,10 @@ TEST(UgcToolboxProtocol, FramesOneMessagePerLine) {
const auto request = UgcToolboxProtocol::MakeRequest(7, "/w/7.lxfml", "/w/7.nif", { 0, 2 });
EXPECT_EQ(request["cmd"], "make");
EXPECT_EQ(request["lods"], nlohmann::json::array({ 0, 2 }));
EXPECT_EQ(request["colorVariation"]["mode"], "toolbox");
const auto live = UgcToolboxProtocol::MakeRequest(8, "/w/8.lxfml", "/w/8.nif", { 0 }, { "live", 5.0f, 1234 });
EXPECT_EQ(live["colorVariation"]["mode"], "live");
EXPECT_EQ(live["colorVariation"]["seed"], 1234u);
// Lines arrive in pieces and several at once
UgcToolboxProtocol::LineReader reader;