Commit e61ff18e authored by Jan Möbius's avatar Jan Möbius

Ract on correct draw modes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12369 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0426c877
......@@ -895,8 +895,8 @@ void TextureControlPlugin::slotDrawModeChanged(int _viewerId ) {
// Only update if we have a relevant draw mode
if (! ( ( PluginFunctions::drawMode(_viewerId) == ACG::SceneGraph::DrawModes::SOLID_TEXTURED ) ||
( PluginFunctions::drawMode(_viewerId) == ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED) ||
( PluginFunctions::drawMode(_viewerId) == ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE) ||
( PluginFunctions::drawMode(_viewerId) == ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED) )) {
( PluginFunctions::drawMode(_viewerId) == ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE) ||
( PluginFunctions::drawMode(_viewerId) == ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED) )) {
return;
}
......@@ -965,6 +965,8 @@ void TextureControlPlugin::slotObjectUpdated(int _identifier, const UpdateType _
for ( int j = 0 ; j < PluginFunctions::viewers() ; ++j ) {
update |= ( PluginFunctions::drawMode(j) == ACG::SceneGraph::DrawModes::SOLID_TEXTURED );
update |= ( PluginFunctions::drawMode(j) == ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED );
update |= ( PluginFunctions::drawMode(j) == ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE );
update |= ( PluginFunctions::drawMode(j) == ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED );
}
if ( update && texData->textures()[i].enabled() )
......
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