src/editmodes/circleMode.cpp

changeset 1187
46dc716238fd
parent 1180
2005e4147ad6
child 1199
613a981223a6
--- a/src/editmodes/circleMode.cpp	Sun Mar 05 16:47:52 2017 +0200
+++ b/src/editmodes/circleMode.cpp	Sun Mar 05 16:50:06 2017 +0200
@@ -105,7 +105,7 @@
 			primitiveModel.ringNumber = component.num;
 			primitiveFile = primitives()->getPrimitive(primitiveModel);
 			Matrix matrix = Matrix::fromRotationMatrix(renderer()->currentCamera().transformationMatrix(component.scale));
-			model.emplace<LDSubfileReference>(primitiveFile, matrix, m_drawedVerts.first());
+			model.append<LDSubfileReference>(primitiveFile, matrix, m_drawedVerts.first());
 		}
 	}
 	else
@@ -139,7 +139,7 @@
 			v3.setCoordinate (localx, v3[localx] + c1[i].x1());
 			v3.setCoordinate (localy, v3[localy] + c1[i].y1());
 
-			LDQuadrilateral* quad = model.emplace<LDQuadrilateral>(v0, v1, v2, v3);
+			LDQuadrilateral* quad = model.append<LDQuadrilateral>(v0, v1, v2, v3);
 			quad->setColor(MainColor);
 
 			// Ensure the quads always are BFC-front towards the camera
@@ -149,7 +149,7 @@
 	}
 
 	if (circleOrDisc and primitiveFile)
-		model.emplace<LDSubfileReference>(primitiveFile, transform, m_drawedVerts.first());
+		model.append<LDSubfileReference>(primitiveFile, transform, m_drawedVerts.first());
 
 	finishDraw (model);
 }

mercurial