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