Improvements to GUI performance
This commit is contained in:
parent
1960ea827e
commit
80097dc41e
8 changed files with 31 additions and 21 deletions
|
|
@ -392,6 +392,8 @@ void Toolbar::paint_popup(Vector2f popupPos) {
|
|||
.onRotate = [&, newRotationAngle] {
|
||||
main.world->drawData.cam.c.rotate_about(main.world->drawData.cam.c.from_space(main.window.size.cast<float>() * 0.5f), *newRotationAngle - main.world->drawData.cam.c.rotation);
|
||||
*newRotationAngle = main.world->drawData.cam.c.rotation;
|
||||
},
|
||||
.onRotateDone = [&] {
|
||||
gui.set_to_layout();
|
||||
},
|
||||
.onPaletteClick = [&] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue