From 9ee9aa7609d4830805b9089af882d91900fe859c Mon Sep 17 00:00:00 2001 From: phkahler <14852918+phkahler@users.noreply.github.com> Date: Sat, 28 Jan 2023 19:04:44 -0500 Subject: [PATCH] Treat a linked group as mesh-only if it has a Mesh but no Shell. --- src/group.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/group.cpp b/src/group.cpp index 529fce64..ee60118c 100644 --- a/src/group.cpp +++ b/src/group.cpp @@ -412,7 +412,9 @@ bool Group::IsForcedToMesh() 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() {