mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Split the shapes in different files and made them all QObjects with QProperties.
This commit is contained in:
@@ -88,10 +88,10 @@ void MeshControlPainter::_paintShape(QPainter *painter, MapperGLCanvas* canvas)
|
||||
painter->setPen(getRescaledShapeStroke(canvas, true));
|
||||
|
||||
// Draw inner quads.
|
||||
QVector<Quad> quads = mesh->getQuads();
|
||||
for (QVector<Quad>::const_iterator it = quads.begin(); it != quads.end(); ++it)
|
||||
QVector<Quad::ptr> quads = mesh->getQuads();
|
||||
for (QVector<Quad::ptr>::const_iterator it = quads.begin(); it != quads.end(); ++it)
|
||||
{
|
||||
painter->drawPolygon(it->toPolygon());
|
||||
painter->drawPolygon((*it)->toPolygon());
|
||||
}
|
||||
|
||||
// Draw outer quad.
|
||||
|
||||
Reference in New Issue
Block a user