Deactivate combining by color

Change part's color should not affect the generated mesh.
master
huxingyi 2020-10-18 15:04:47 +09:30
parent d6f6fb6cdf
commit 51b7d85c3b
1 changed files with 2 additions and 1 deletions

View File

@ -1102,7 +1102,8 @@ MeshCombiner::Mesh *MeshGenerator::combineComponentMesh(const QString &component
for (size_t i = 0; i < group.second.size(); ++i) { for (size_t i = 0; i < group.second.size(); ++i) {
if (used.find(i) != used.end()) if (used.find(i) != used.end())
continue; 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()) { if (lastColorName != colorName || lastColorName.isEmpty()) {
//qDebug() << "New sub group[" << currentSubGroupIndex << "] for color[" << colorName << "]"; //qDebug() << "New sub group[" << currentSubGroupIndex << "] for color[" << colorName << "]";
componentIdStrings.push_back({}); componentIdStrings.push_back({});