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

Hopefully final fix for bug

refs #2443



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20611 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3d11893e
......@@ -832,10 +832,18 @@ void InfoMeshObjectPlugin::updateData( int _identifier , const UpdateType& _type
BaseObjectData* object;
PluginFunctions::getObject(_identifier,object);
// Last object that is target has been removed.
if ( _deleted && object && object->target() && (PluginFunctions::targetCount() == 1) ) {
infoBar_->hideCounts();
return;
}
// We only show the information in the status bar if one target mesh is selected or
// If 2 targets where selected, where one is deleted which was target
if ( PluginFunctions::targetCount() == 1 || ( _deleted && (PluginFunctions::targetCount() == 2) && object && object->target() ) ) {
// The object that caused the update is not a target anymore.
// Therefore we need to get the remaining target by iteration.
// If something was deleted, we might see this object here, so make sure, to not take the one with the same id as the deleted one
......
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