Commit 478134ca authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #338] prevent OpenWalnut from blocking when the vector plot is called

parent f2f75dee
......@@ -145,7 +145,10 @@ void WMVectorPlot::moduleMain()
osg::ref_ptr< osg::Geode > newRootNode = new osg::Geode();
newRootNode->addDrawable( buildPlotSlices() );
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->remove( m_rootNode );
if( m_rootNode )
{
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->remove( m_rootNode );
}
++*progress;
......
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