Commit 27174945 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

Merge remote-tracking branch 'origin/667-fix-triangle-mesh-renderer-colormap'

parents 8dc6d5a6 965b7d8e
......@@ -163,6 +163,10 @@ void WGEColormapping::applyInst( NodeList nodes, WMatrix4d preTransform, osg::re
info->m_rebind = true;
info->m_texUnitStart = startTexUnit;
info->m_preTransform = preTransform;
// If the node is already in the map it needs to be erased first as insert does not overwrite and thus not rebind the texture.
// instead of this it may be better for modules to remove their nodes => less memory consumption
m_nodeInfo.erase( *i );
m_nodeInfo.insert( std::make_pair( *i, info ) );
( *i )->addUpdateCallback( new WGEFunctorCallback< osg::Node >( boost::bind( &WGEColormapping::callback, this, boost::placeholders::_1 ) ) );
......
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