Don't apply the transformations recursively, just make sure the right one is applied to the top subobject (#11539)

This commit is contained in:
bgbsww
2023-11-29 15:15:59 -05:00
committed by GitHub
parent d9a9b95ede
commit b1a96bde5f

View File

@@ -107,7 +107,7 @@ int Exporter::addObject(App::DocumentObject* obj, float tol)
for (std::string& sub : expandSubObjectNames(obj, subObjectNameCache, 0)) {
Base::Matrix4D matrix;
auto sobj = obj->getSubObject(sub.c_str(), nullptr, &matrix);
auto linked = sobj->getLinkedObject(true, &matrix, true);
auto linked = sobj->getLinkedObject(true, &matrix, false);
auto it = meshCache.find(linked);
if (it == meshCache.end()) {
if (linked->isDerivedFrom(Mesh::Feature::getClassTypeId())) {