Force remeshed component as uncombinable

In most cases, allowing remeshed components to do boolean operations will cause crash in CGAL.
master
huxingyi 2020-10-17 11:20:32 +09:30
parent 37f6545de4
commit b36adf7a8d
1 changed files with 2 additions and 2 deletions

View File

@ -893,8 +893,8 @@ CombineMode MeshGenerator::componentCombineMode(const std::map<QString, QString>
if (combineMode == CombineMode::Normal) {
if (isTrueValueString(valueOfKeyInMapOrEmpty(*component, "inverse")))
combineMode = CombineMode::Inversion;
//if (componentRemeshed(component))
// combineMode = CombineMode::Uncombined;
if (componentRemeshed(component))
combineMode = CombineMode::Uncombined;
if (combineMode == CombineMode::Normal) {
if (ComponentLayer::Body != ComponentLayerFromString(valueOfKeyInMapOrEmpty(*component, "layer").toUtf8().constData())) {
combineMode = CombineMode::Uncombined;