Skip to content

Commit

Permalink
Fix disable stitching part
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Jan 17, 2023
1 parent 53f0d63 commit 85c2d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dust3d/mesh/mesh_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ std::unique_ptr<MeshState> MeshGenerator::combineStitchingMesh(const std::string
componentIds[i] = componentIdStrings[i];
for (size_t partIndex = 0; partIndex < partIdStrings.size(); ++partIndex) {
const auto& partIdString = partIdStrings[partIndex];
auto findPart = m_snapshot->parts.find(partIdString);
if (findPart != m_snapshot->parts.end()) {
if (String::isTrue(String::valueOrEmpty(findPart->second, "disabled")))
continue;
}
bool isCircle = false;
bool isClosing = false;
std::vector<MeshNode> orderedBuilderNodes;
Expand Down

0 comments on commit 85c2d80

Please sign in to comment.