Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
5ab1f82f
Commit
5ab1f82f
authored
Sep 30, 2020
by
TheNumbat
Browse files
rig camera
parent
11a5e11c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/manager.cpp
View file @
5ab1f82f
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment