src/gldraw.cpp

changeset 361
f4c029f2a75b
parent 351
6fdd32c4886c
child 363
75583c9f289d
equal deleted inserted replaced
360:77f08db90249 361:f4c029f2a75b
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 {

mercurial