src/editmodes/circleMode.cpp

changeset 1263
0256edecda54
parent 1261
5d2c9d36da9d
child 1319
39d7a9642eea
--- a/src/editmodes/circleMode.cpp	Sat Mar 03 17:28:27 2018 +0200
+++ b/src/editmodes/circleMode.cpp	Sat Mar 03 17:47:40 2018 +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.emplace<LDSubfileReference>(primitiveFile->name(), matrix, m_drawedVerts.first());
 		}
 	}
 	else
@@ -149,7 +149,7 @@
 	}
 
 	if (circleOrDisc and primitiveFile)
-		model.emplace<LDSubfileReference>(primitiveFile, transform, m_drawedVerts.first());
+		model.emplace<LDSubfileReference>(primitiveFile->name(), transform, m_drawedVerts.first());
 
 	finishDraw (model);
 }

mercurial