235 { |
235 { |
236 // Check whether subfile is flat |
236 // Check whether subfile is flat |
237 int axisSet = (1 << X) | (1 << Y) | (1 << Z); |
237 int axisSet = (1 << X) | (1 << Y) | (1 << Z); |
238 Model model {currentDocument()->documentManager()}; |
238 Model model {currentDocument()->documentManager()}; |
239 LDSubfileReference* reference = static_cast<LDSubfileReference*>(obj); |
239 LDSubfileReference* reference = static_cast<LDSubfileReference*>(obj); |
240 reference->fileInfo()->inlineContents(model, true, false); |
240 reference->fileInfo(m_documents)->inlineContents(model, true, false); |
241 |
241 |
242 for (LDObject* subobj : model.objects()) |
242 for (LDObject* subobj : model.objects()) |
243 { |
243 { |
244 for (int i = 0; i < subobj->numVertices(); ++i) |
244 for (int i = 0; i < subobj->numVertices(); ++i) |
245 { |
245 { |