1603 pick (ev->x (), ev->y ()); |
1603 pick (ev->x (), ev->y ()); |
1604 |
1604 |
1605 if (g_win->sel ().size () == 0) |
1605 if (g_win->sel ().size () == 0) |
1606 return; |
1606 return; |
1607 |
1607 |
1608 LDObject* obj = g_win->sel ()[0]; |
1608 file()->openHistory(); |
|
1609 LDObject* obj = g_win->sel()[0]; |
1609 AddObjectDialog::staticDialog (obj->getType (), obj); |
1610 AddObjectDialog::staticDialog (obj->getType (), obj); |
|
1611 file()->closeHistory(); |
1610 ev->accept (); |
1612 ev->accept (); |
1611 } |
1613 } |
1612 |
1614 |
1613 LDOverlay* GLRenderer::findOverlayObject( GLRenderer::Camera cam ) |
1615 LDOverlay* GLRenderer::findOverlayObject( GLRenderer::Camera cam ) |
1614 { |
1616 { |