Skip to content
GitLab
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
81a008a6
Commit
81a008a6
authored
Sep 16, 2011
by
Oliver Bock
Browse files
Update pulse profile each frame (show subtle changes smoothly)
parent
1248c234
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
81a008a6
...
...
@@ -586,13 +586,14 @@ void PulsarAnimationWidget::updateFrame()
m_pulsarRotationAngle
+=
m_pulsarRotationDelta
;
if
(
m_pulsarRotationAngle
>
360.0
)
{
m_pulsarRotationAngle
-=
360.0
;
updatePulseProfile
();
}
m_orbitRotationAngle
+=
m_orbitRotationDelta
;
if
(
m_orbitRotationAngle
>
360.0
)
{
m_orbitRotationAngle
-=
360.0
;
}
updatePulseProfile
();
updateGL
();
emit
pulsarAnimationStep
(
m_pulsarRotationAngle
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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