Skip to content
Snippets Groups Projects
Commit 81a008a6 authored by Oliver Bock's avatar Oliver Bock
Browse files

Update pulse profile each frame (show subtle changes smoothly)

parent 1248c234
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment