--- a/src/editmodes/drawMode.cpp Sun Sep 06 20:45:51 2015 +0300 +++ b/src/editmodes/drawMode.cpp Tue Sep 22 00:59:21 2015 +0300 @@ -92,21 +92,21 @@ switch (verts.size()) { - case 2: + case 2: { // 2 verts - make a line LDLine* obj = LDSpawn<LDLine> (verts[0], verts[1]); obj->setColor (EdgeColor); objs << obj; - break; } + break; - case 3: - case 4: + case 3: + case 4: { - LDObject* obj = (verts.size() == 3) ? - static_cast<LDObject*> (LDSpawn<LDTriangle>()) : - static_cast<LDObject*> (LDSpawn<LDQuad>()); + LDVertexObject* obj = (verts.size() == 3) ? + static_cast<LDVertexObject*> (LDSpawn<LDTriangle>()) : + static_cast<LDVertexObject*> (LDSpawn<LDQuad>()); obj->setColor (MainColor); @@ -114,8 +114,8 @@ obj->setVertex (i, verts[i]); objs << obj; - break; } + break; } finishDraw (objs);