diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index 2c6502a969d22e4bee2d2c334d1c8a0618d44635..2db3d23e0eab18548388f556e48e5f49578171d7 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -437,7 +437,7 @@ void PulsarAnimationWidget::paintGL() // Pinnacle of cone is shared vertex for fan, moved up z-axis // to produce a cone instead of a circle glColor3f(1.0f, 1.0f, 0.0f); - glVertex3f(0.0f, 0.0f, 3.0f); + glVertex3f(0.0f, 0.0f, m_pulsarBeamLength); // Loop around in a circle and specify even points along the circle // as the vertices of the triangle fan (32 sections) @@ -457,7 +457,7 @@ void PulsarAnimationWidget::paintGL() glBegin(GL_TRIANGLE_FAN); { glColor3f(0.66f, 0.66f, 0.0f); - glVertex3f(0.0f, 0.0f, 3.0f); + glVertex3f(0.0f, 0.0f, m_pulsarBeamLength); for(angle = 0.0f; angle < (2.0f*PI); angle += (PI/32.0f)) { x = m_pulsarBeamInnerRadius * sin(angle); y = m_pulsarBeamInnerRadius * cos(angle);