Commit 725b99fd authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX #326] module did not remove its render node, causing a crash on removal.

parent ca6ca607
......@@ -750,6 +750,10 @@ void WMTemplate::moduleMain()
// * stop any pending threads you may have started earlier
// * ...
// NOTE: as the module gets disconnected prior to shutdown, most of the cleanup should have been done already.
// Remove the geometry from the scene. If it has never been added, this call does nothing. Always remember to remove your rendering at the
// end of the module loop.
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->remove( m_rootNode );
}
void WMTemplate::SafeUpdateCallback::operator()( osg::Node* node, osg::NodeVisitor* nv )
......
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