Commit 5ab1f82f authored by TheNumbat's avatar TheNumbat
Browse files

rig camera

parent 11a5e11c
...@@ -88,7 +88,7 @@ bool Manager::keydown(Undo &undo, SDL_Keysym key, Scene &scene, Camera &cam) { ...@@ -88,7 +88,7 @@ bool Manager::keydown(Undo &undo, SDL_Keysym key, Scene &scene, Camera &cam) {
return true; return true;
case SDLK_f: { case SDLK_f: {
if (mode == Mode::rig) { if (mode == Mode::rig) {
cam.look_at(Vec3{}, cam.front() - cam.dist()); cam.look_at(Vec3{}, -cam.front() * cam.dist());
return true; return true;
} else if (layout.selected()) { } else if (layout.selected()) {
frame(scene, cam); frame(scene, cam);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment