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

Use drawmodeSettingActions overrride

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10110 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 99afff19
......@@ -596,8 +596,8 @@ void ViewControlPlugin::slotDrawModeSelected( QAction * _action) {
BaseObjectData* object = 0;
PluginFunctions::getObject( lastObjectId_, object );
// Set draw Modes for this object
ACG::SceneGraph::SetDrawModesAction actionActive( activeDrawModes_ );
// Set draw Modes for this object ( force it when we do not set the global draw mode, to override global draw mode and force the modes on the nodes )
ACG::SceneGraph::SetDrawModesAction actionActive( activeDrawModes_ , _action->text() != USEGLOBALDRAWMODE );
if ( object )
ACG::SceneGraph::traverse( object->primaryNode() , actionActive);
else
......
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