Commit dbed3387 authored by Mike Kremer's avatar Mike Kremer
Browse files

Jan: Ifdefs and changes for POLY_LINE

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6329 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a5ab7d98
......@@ -172,7 +172,9 @@ void SelectionPlugin::pluginsInitialized() {
emit addContextMenuItem(contextMenu_->menuAction() , DATA_TRIANGLE_MESH , CONTEXTOBJECTMENU );
emit addContextMenuItem(contextMenu_->menuAction() , DATA_POLY_MESH , CONTEXTOBJECTMENU );
#ifdef ENABLE_POLYLINE_SUPPORT
emit addContextMenuItem(contextMenu_->menuAction() , DATA_POLY_LINE , CONTEXTOBJECTMENU );
#endif
emit addContextMenuItem(contextMenu_->menuAction() , DATA_BSPLINE_CURVE , CONTEXTOBJECTMENU );
connect( contextMenu_ , SIGNAL( triggered(QAction*) ),
......
......@@ -53,7 +53,7 @@ void SelectionPlugin::slotSelectAll()
else
restriction = PluginFunctions::TARGET_OBJECTS;
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH | DATA_POLY_LINE)) ;
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_ALL)) ;
o_it != PluginFunctions::objectsEnd(); ++o_it)
if ( o_it->visible() )
selectAll( o_it->id() );
......@@ -76,7 +76,7 @@ void SelectionPlugin::slotClearSelection()
restriction = PluginFunctions::TARGET_OBJECTS;
// process all meshes
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH | DATA_POLY_LINE )) ;
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_ALL )) ;
o_it != PluginFunctions::objectsEnd(); ++o_it)
if ( o_it->visible() )
clearSelection( o_it->id() );
......@@ -98,7 +98,7 @@ void SelectionPlugin::slotInvertSelection() {
restriction = PluginFunctions::TARGET_OBJECTS;
// process all meshes
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH | DATA_POLY_LINE )) ;
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_ALL) ) ;
o_it != PluginFunctions::objectsEnd(); ++o_it)
if ( o_it->visible() )
invertSelection( o_it->id() );
......@@ -242,4 +242,4 @@ void SelectionPlugin::slotSaveSelection(){
ini.disconnect();
}
}
\ No newline at end of file
}
Supports Markdown
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