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

Automatically switch to texture draw mode when selecting texture

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2519 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b9fdddd2
......@@ -572,6 +572,8 @@ void TextureControlPlugin::slotTextureMenu(QAction* _action) {
slotTextureUpdated( _action->text() , o_it->id() );
updateDialog();
PluginFunctions::setDrawMode( ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED );
}
}
......@@ -588,6 +590,8 @@ void TextureControlPlugin::slotSwitchTexture( QString _textureName ) {
emit log(LOGERR,"Unable to switch to texture " + _textureName + " (not found)");
return;
}
PluginFunctions::setDrawMode( ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED );
if ( activeTexture_ != _textureName ) {
activeTexture_ = _textureName;
......
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