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

Emit visibility changed when Nodes are hidden/shown

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7640 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 845fa8db
......@@ -744,25 +744,23 @@ void MovePlugin::placeManip(QMouseEvent * _event, bool _snap) {
void MovePlugin::showManipulators( )
{
if (!hide_ && (toolboxActive_ || (PluginFunctions::pickMode() == "Move")
|| (PluginFunctions::pickMode() == "MoveSelection"))) {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it
!= PluginFunctions::objectsEnd(); ++o_it)
if (o_it->manipPlaced()) {
o_it->manipulatorNode()->show();
o_it->manipulatorNode()->apply_transformation(
PluginFunctions::pickMode() == "Move");
}
} else {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it
!= PluginFunctions::objectsEnd(); ++o_it)
if (!hide_ && (toolboxActive_ || (PluginFunctions::pickMode() == "Move") || (PluginFunctions::pickMode() == "MoveSelection"))) {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it != PluginFunctions::objectsEnd(); ++o_it)
if (o_it->manipPlaced()) {
o_it->manipulatorNode()->show();
o_it->manipulatorNode()->apply_transformation( PluginFunctions::pickMode() == "Move" );
emit visibilityChanged(o_it->id());
}
o_it->manipulatorNode()->hide();
}
} else {
for (PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS); o_it != PluginFunctions::objectsEnd(); ++o_it) {
o_it->manipulatorNode()->hide();
emit visibilityChanged(o_it->id());
}
}
emit updateView();
emit updateView();
}
......
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