374 |
374 |
375 // TODO: try use interfaces to remove these special treatments? |
375 // TODO: try use interfaces to remove these special treatments? |
376 case LDObjectType::SubfileReference: |
376 case LDObjectType::SubfileReference: |
377 { |
377 { |
378 LDSubfileReference* subfileReference = static_cast<LDSubfileReference*>(object); |
378 LDSubfileReference* subfileReference = static_cast<LDSubfileReference*>(object); |
379 auto data = subfileReference->inlinePolygons(); |
379 auto data = subfileReference->inlinePolygons(m_documents); |
380 |
380 |
381 for (LDPolygon& poly : data) |
381 for (LDPolygon& poly : data) |
382 { |
382 { |
383 poly.id = object->id(); |
383 poly.id = object->id(); |
384 compilePolygon (poly, index, info); |
384 compilePolygon (poly, index, info); |