Commit a574589e by Alexander Wiebel

[FIX #369] - vector plot could not find their shaders anymore. This is fixed

now.
parent c0d9c50c
......@@ -44,7 +44,6 @@ W_LOADABLE_MODULE( WMVectorPlot )
WMVectorPlot::WMVectorPlot():
WModule(), m_mat( 4, 4 )
{
m_shader = osg::ref_ptr< WShader > ( new WShader( "WMVectorPlot", m_localPath ) );
}
WMVectorPlot::~WMVectorPlot()
......@@ -161,6 +160,7 @@ void WMVectorPlot::moduleMain()
m_rootNode->setNodeMask( m_active->get() ? 0xFFFFFFFF : 0x0 );
m_rootNode->addUpdateCallback( new SafeUpdateCallback( this ) );
m_shader = osg::ref_ptr< WShader > ( new WShader( "WMVectorPlot", m_localPath ) );
m_shader->apply( m_rootNode );
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->insert( m_rootNode );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment