Commit 60b07506 authored by Matthias Möller's avatar Matthias Möller

show bounding box properly if another object except the first one is loaded

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20118 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7b3e1c3c
......@@ -899,6 +899,17 @@ void DataControlPlugin::showReducedUi(bool reduced) {
tool_->visibleDataBtn->setVisible(!reduced);
}
void DataControlPlugin::slotObjectUpdated( int _identifier, const UpdateType& _type )
{
if ( ! OpenFlipper::Options::gui() || !_type.contains(UPDATE_GEOMETRY))
return;
BaseObjectData* obj = 0;
if ( PluginFunctions::getObject( _identifier, obj) )
updateBoundingBox (obj);
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( datacontrolplugin , DataControlPlugin );
#endif
......
......@@ -112,6 +112,7 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, KeyIn
void slotVisibilityChanged ( int _identifier );
void slotObjectSelectionChanged ( int _identifier );
void slotObjectPropertiesChanged( int _identifier );
void slotObjectUpdated( int _identifier, const UpdateType& _type );
// KeyInterface
void slotKeyEvent( QKeyEvent* _event );
......
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