Commit 151d7a1f authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed bug in renderinfo not setting viewer to a renderer mode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12943 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 454f9c2a
......@@ -160,12 +160,14 @@ void RenderManager::setActive(QString _active, int _id) {
}
// Increase vector size
if ( _id >= (int)activeRenderers_.size() )
if ( _id >= (int)activeRenderers_.size() ) {
activeRenderers_.resize(_id +1 );
}
for ( unsigned int i = 0 ; i < availableRenderers_.size() ; ++i)
if ( availableRenderers_[i].name == _active) {
activeRenderers_[i] = i;
activeRenderers_[_id] = i;
}
}
......
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