Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
0a639ffe
Commit
0a639ffe
authored
Sep 07, 2021
by
Robin Eschbach
Browse files
[FIX
#537
] better fix for project loading and home calculation
parent
3b6843b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/core/graphicsEngine/WGEZoomTrackballManipulator.cpp
src/core/graphicsEngine/WGEZoomTrackballManipulator.cpp
+2
-0
src/qtgui/WMainWindow.cpp
src/qtgui/WMainWindow.cpp
+2
-2
No files found.
src/core/graphicsEngine/WGEZoomTrackballManipulator.cpp
View file @
0a639ffe
...
...
@@ -219,6 +219,8 @@ void WGEZoomTrackballManipulator::fitToScreen( const osg::Camera* camera )
return
;
}
computeHomePosition
(
camera
,
true
);
double
radiusFac
[]
=
{
1
,
1
,
1
,
-
1
,
1
,
1
,
...
...
src/qtgui/WMainWindow.cpp
View file @
0a639ffe
...
...
@@ -1091,8 +1091,8 @@ bool WMainWindow::event( QEvent* event )
}
}
//
Set the manipulator anew after loading to fix some bugs of commands to get passed to the right manip
ulat
or.
m_mainGLWidget
->
getViewer
()
->
s
etCameraManipulator
(
new
WGEZoomTrackballManipulator
()
);
//
Loading projects loses home position calc
ulat
ion
m_mainGLWidget
->
getViewer
()
->
g
etCameraManipulator
(
)
->
setAutoComputeHomePosition
(
true
);
}
}
...
...
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