Commit 74d430cc authored by Dirk Wilden's avatar Dirk Wilden

fixed object_iterator which slowed everything down when many objects are opened

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8677 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8bb1a539
......@@ -769,9 +769,15 @@ void MovePlugin::placeManip(QMouseEvent * _event, bool _snap) {
void MovePlugin::showManipulators( )
{
#ifdef ENABLE_TSPLINEMESH_SUPPORT
DataType types = DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH | DATA_TSPLINE_MESH);
#else
DataType types = DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH);
#endif
if (!hide_ && (toolboxActive_ || (PluginFunctions::pickMode() == "Move") || (PluginFunctions::pickMode() == "MoveSelection"))) {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it != PluginFunctions::objectsEnd(); ++o_it)
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS, types); o_it != PluginFunctions::objectsEnd(); ++o_it)
if (o_it->manipPlaced()) {
o_it->manipulatorNode()->show();
o_it->manipulatorNode()->apply_transformation( PluginFunctions::pickMode() == "Move" );
......@@ -779,7 +785,7 @@ void MovePlugin::showManipulators( )
}
} else {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it != PluginFunctions::objectsEnd(); ++o_it) {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS, types); o_it != PluginFunctions::objectsEnd(); ++o_it) {
o_it->manipulatorNode()->hide();
emit nodeVisibilityChanged(o_it->id());
}
......
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