gui_actions.cpp

changeset 153
03a7bdcce50d
parent 150
bcbbdc5454e6
child 154
cc53e5cbad54
--- a/gui_actions.cpp	Fri May 03 18:30:38 2013 +0300
+++ b/gui_actions.cpp	Fri May 03 18:49:23 2013 +0300
@@ -373,7 +373,7 @@
 	pQuad->vaCoords[2] = {-1.0f, 0.0f, -1.0f};
 	pQuad->vaCoords[3] = { 1.0f, 0.0f, -1.0f};
 	
-	g_CurrentFile->addObject (pQuad);
+	g_CurrentFile->insertObj (g_ForgeWindow->getInsertionPoint (), pQuad);
 	History::addEntry (new AddHistory ({(ulong)pQuad->getIndex (g_CurrentFile)}, {pQuad->clone ()}));
 	g_ForgeWindow->refresh ();
 }
@@ -388,7 +388,7 @@
 	pRad->dRingNum = 2;
 	pRad->dSegments = 16;
 	
-	g_CurrentFile->addObject (pRad);
+	g_CurrentFile->insertObj (g_ForgeWindow->getInsertionPoint (), pRad);
 	History::addEntry (new AddHistory ({(ulong)pRad->getIndex (g_CurrentFile)}, {pRad->clone ()}));
 	g_ForgeWindow->refresh ();
 }

mercurial