src/editmodes/abstractEditMode.cpp

changeset 1077
952d6b3e7d11
parent 1072
9ce9496427f2
child 1087
80e25f6b0bb0
--- a/src/editmodes/abstractEditMode.cpp	Sun Jan 29 15:28:48 2017 +0200
+++ b/src/editmodes/abstractEditMode.cpp	Sun Jan 29 15:39:35 2017 +0200
@@ -165,17 +165,14 @@
 	return false;
 }
 
-void AbstractDrawMode::finishDraw(LDObjectList const& objs)
+void AbstractDrawMode::finishDraw(Model& model)
 {
 	int pos = m_window->suggestInsertPoint();
 
-	if (countof(objs) > 0)
+	if (countof(model.objects()) > 0)
 	{
-		for (LDObject* obj : objs)
-		{
+		for (LDObject* obj : model)
 			renderer()->document()->insertObject (pos++, obj);
-			renderer()->compileObject (obj);
-		}
 
 		m_window->refresh();
 		m_window->endAction();

mercurial