Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
5761d7ec
Commit
5761d7ec
authored
Feb 05, 2009
by
Oliver Bock
Browse files
Make sure rotation reset is numerically correct
parent
fa0156ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
5761d7ec
...
...
@@ -382,13 +382,13 @@ void PulsarAnimationWidget::stopAnimation()
void
PulsarAnimationWidget
::
updateFrame
()
{
m_pulsarRotationAngle
+=
m_pulsarRotationDelta
;
if
(
m_pulsarRotationAngle
>
360
)
{
m_pulsarRotationAngle
=
0.0
f
;
if
(
m_pulsarRotationAngle
>
360
.0
f
)
{
m_pulsarRotationAngle
-
=
36
0.0
f
;
updatePulseProfile
();
}
m_orbitRotationAngle
+=
m_orbitRotationDelta
;
if
(
m_orbitRotationAngle
>
360
)
{
m_orbitRotationAngle
=
0.0
f
;
if
(
m_orbitRotationAngle
>
360
.0
f
)
{
m_orbitRotationAngle
-
=
36
0.0
f
;
}
updateGL
();
...
...
Write
Preview
Supports
Markdown
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