Fix 10545 by using position of array members
This commit is contained in:
@@ -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, false);
|
||||
auto linked = sobj->getLinkedObject(true, &matrix, true);
|
||||
auto it = meshCache.find(linked);
|
||||
if (it == meshCache.end()) {
|
||||
if (linked->isDerivedFrom(Mesh::Feature::getClassTypeId())) {
|
||||
@@ -134,7 +134,8 @@ int Exporter::addObject(App::DocumentObject* obj, float tol)
|
||||
}
|
||||
Py_DECREF(pyobj);
|
||||
}
|
||||
}
|
||||
} else if ( it->second.getTransform() != matrix )
|
||||
it->second.setTransform(matrix);
|
||||
|
||||
// Add a new mesh
|
||||
if (it != meshCache.end()) {
|
||||
|
||||
Reference in New Issue
Block a user