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; |