Treat a linked group as mesh-only if it has a Mesh but no Shell.

This commit is contained in:
phkahler 2023-01-28 19:04:44 -05:00 committed by Paul Kahler
parent b556daaf74
commit 9ee9aa7609

View File

@ -412,7 +412,9 @@ bool Group::IsForcedToMesh() const {
} }
bool Group::IsTriangleMeshAssembly() const { bool Group::IsTriangleMeshAssembly() const {
return type == Type::LINKED && linkFile.Extension() == "stl"; if (type != Type::LINKED) return false;
if (!impMesh.IsEmpty() && impShell.IsEmpty()) return true;
return false;
} }
std::string Group::DescriptionString() { std::string Group::DescriptionString() {