src/gldraw.cpp

changeset 384
f4622b79133d
parent 382
c1642530ea35
child 392
629e3142d02d
equal deleted inserted replaced
383:10e60ae9ed58 384:f4622b79133d
1285 break; 1285 break;
1286 } 1286 }
1287 } 1287 }
1288 1288
1289 if (obj) { 1289 if (obj) {
1290 file()->openHistory(); 1290 g_win->beginAction (null);
1291 file()->addObject (obj); 1291 file()->addObject (obj);
1292 compileObject (obj); 1292 compileObject (obj);
1293 g_win->fullRefresh(); 1293 g_win->fullRefresh();
1294 file()->closeHistory(); 1294 g_win->endAction();
1295 } 1295 }
1296 1296
1297 m_drawedVerts.clear(); 1297 m_drawedVerts.clear();
1298 m_rectdraw = false; 1298 m_rectdraw = false;
1299 } 1299 }
1596 pick (ev->x(), ev->y()); 1596 pick (ev->x(), ev->y());
1597 1597
1598 if (g_win->sel().size() == 0) 1598 if (g_win->sel().size() == 0)
1599 return; 1599 return;
1600 1600
1601 file()->openHistory(); 1601 g_win->beginAction (null);
1602 LDObject* obj = g_win->sel()[0]; 1602 LDObject* obj = g_win->sel()[0];
1603 AddObjectDialog::staticDialog (obj->getType(), obj); 1603 AddObjectDialog::staticDialog (obj->getType(), obj);
1604 file()->closeHistory(); 1604 g_win->endAction();
1605 ev->accept(); 1605 ev->accept();
1606 } 1606 }
1607 1607
1608 LDOverlayObject* GLRenderer::findOverlayObject (GLRenderer::Camera cam) { 1608 LDOverlayObject* GLRenderer::findOverlayObject (GLRenderer::Camera cam) {
1609 LDOverlayObject* ovlobj = null; 1609 LDOverlayObject* ovlobj = null;

mercurial