Skip to content

Commit

Permalink
CTRL+F hotkey (#100)
Browse files Browse the repository at this point in the history
opens the entity report widget
  • Loading branch information
Unreal Karaulov authored Nov 19, 2022
1 parent e1c047b commit 988fc70
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/editor/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,16 @@ void Renderer::vertexEditControls() {
canTransform = (transformTarget == TRANSFORM_OBJECT || transformTarget == TRANSFORM_ORIGIN) && transformMode == TRANSFORM_MOVE;
}

if (pressed[GLFW_KEY_F] && !oldPressed[GLFW_KEY_F]) {
splitFace();
if (pressed[GLFW_KEY_F] && !oldPressed[GLFW_KEY_F])
{
if (!anyCtrlPressed)
{
splitFace();
}
else
{
gui->showEntityReport = true;
}
}
}

Expand Down

0 comments on commit 988fc70

Please sign in to comment.