Commit 7b3e1c3c authored by Matthias Möller's avatar Matthias Möller

- disable redraw and scenegraph update while changing object states (target/source and visibility)

closes #2304

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19822 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fb9053ed
......@@ -276,6 +276,10 @@ void DataControlPlugin::slotObjectSelectionChanged( int _identifier )
model_->objectChanged( _identifier );
//block scenegraph reset and redraw in core
OpenFlipper::Options::blockSceneGraphUpdates();
OpenFlipper::Options::redrawDisabled(true);
// if we are allowed to propagate down
if ( onlyUp_ == 0 ){
......@@ -296,6 +300,10 @@ void DataControlPlugin::slotObjectSelectionChanged( int _identifier )
onlyUp_--;
}
OpenFlipper::Options::unblockSceneGraphUpdates();
OpenFlipper::Options::redrawDisabled(false);
emit updateView();
}
......@@ -320,6 +328,10 @@ void DataControlPlugin::slotVisibilityChanged( int _identifier ){
//check for changes in the tree
BaseObject* obj = 0;
//block scenegraph reset and redraw in core
OpenFlipper::Options::blockSceneGraphUpdates();
OpenFlipper::Options::redrawDisabled(true);
if ( PluginFunctions::getObject( _identifier, obj) ){
// if we are allowed to propagate up
......@@ -345,11 +357,16 @@ void DataControlPlugin::slotVisibilityChanged( int _identifier ){
}
}
OpenFlipper::Options::unblockSceneGraphUpdates();
OpenFlipper::Options::redrawDisabled(false);
BaseObjectData* object = 0;
if ( PluginFunctions::getObject( _identifier, object) )
updateBoundingBox (object);
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