Commit 352d8648 authored by schurade's avatar schurade

[FIX #404] Crash after deleting ArbitraryPlane, there is still a warning about...

[FIX #404] Crash after deleting ArbitraryPlane, there is still a warning about still referenced osg object but at least it doesn't crash anymore, still investigating
parent a55a2515
......@@ -212,6 +212,10 @@ void WMArbitraryPlane::moduleMain()
m_dirty = true;
}
}
WGraphicsEngine::getGraphicsEngine()->getScene()->remove( &( *m_s0 ) );
WGraphicsEngine::getGraphicsEngine()->getScene()->remove( &( *m_s1 ) );
WGraphicsEngine::getGraphicsEngine()->getScene()->remove( &( *m_s2 ) );
con.disconnect();
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->remove( 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