Improvements to GUI performance

This commit is contained in:
Yousef Khadadeh 2026-05-19 16:35:08 +03:00
parent 1960ea827e
commit 80097dc41e
8 changed files with 31 additions and 21 deletions

View file

@ -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 = [&] {