From 51b7d85c3baa358563dcbfb2e31fd82156e0c763 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Sun, 18 Oct 2020 15:04:47 +0930 Subject: [PATCH] Deactivate combining by color Change part's color should not affect the generated mesh. --- src/meshgenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index 779e8953..46b3329d 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -1102,7 +1102,8 @@ MeshCombiner::Mesh *MeshGenerator::combineComponentMesh(const QString &component for (size_t i = 0; i < group.second.size(); ++i) { if (used.find(i) != used.end()) continue; - const auto &colorName = group.second[i].second; + //const auto &colorName = group.second[i].second; + const QString colorName = "white"; // Force to use the same color = deactivate combine by color if (lastColorName != colorName || lastColorName.isEmpty()) { //qDebug() << "New sub group[" << currentSubGroupIndex << "] for color[" << colorName << "]"; componentIdStrings.push_back({});