zz_addObjectDialog.cpp

changeset 153
03a7bdcce50d
parent 150
bcbbdc5454e6
child 154
cc53e5cbad54
equal deleted inserted replaced
152:552e46650a95 153:03a7bdcce50d
430 430
431 default: 431 default:
432 break; 432 break;
433 } 433 }
434 434
435 ulong idx = g_CurrentFile->addObject (obj); 435 ulong idx = g_ForgeWindow->getInsertionPoint ();
436 g_CurrentFile->insertObj (idx, obj);
436 History::addEntry (new AddHistory ({idx}, {obj->clone ()})); 437 History::addEntry (new AddHistory ({idx}, {obj->clone ()}));
437 g_ForgeWindow->refresh (); 438 g_ForgeWindow->refresh ();
438 } 439 }

mercurial