src/glcompiler.cpp

changeset 1305
31627acdd4b5
parent 1282
c6bc95cbf4a3
child 1306
be85306198a2
equal deleted inserted replaced
1304:bb3f43293cf8 1305:31627acdd4b5
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 }

mercurial