Commit da4fa77a authored by Marcel Campen's avatar Marcel Campen

Fixed new function

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10113 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5342108b
......@@ -1110,13 +1110,21 @@ ViewControlPlugin::setObjectDrawMode(QString _mode, int _objectID, bool _force)
{
BaseObjectData* object = 0;
PluginFunctions::getObject( _objectID, object );
QStringList list = _mode.split(';');
std::vector< QString > drawModeList;
for ( int i = 0 ; i < list.size() ; ++i )
drawModeList.push_back(list[i]);
ACG::SceneGraph::DrawModes::DrawMode mode = listToDrawMode(drawModeList);
// 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_ , _force );
ACG::SceneGraph::SetDrawModesAction actionActive( mode , _force );
if ( object )
ACG::SceneGraph::traverse( object->primaryNode() , actionActive);
else
PluginFunctions::setDrawMode( activeDrawModes_ , PluginFunctions::activeExaminer() );
}
//-----------------------------------------------------------------------------
......
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