diff -r 0fad394bc330 -r 31841b366d5e branchobj.cpp --- a/branchobj.cpp Wed Mar 10 15:36:19 2010 +0000 +++ b/branchobj.cpp Mon Mar 15 11:49:42 2010 +0000 @@ -738,15 +738,29 @@ anim=ap; } +//#include bool BranchObj::animate() { anim.animate (); if ( anim.isAnimated() ) { - setRelPos (anim); + //if (((MapItem*)treeItem)->getPositionMode()==MapItem::Relative) + if (useRelPos) + { + setRelPos (anim); + //cout<<"Animating rel "<getHeading().toStdString()<<" "<"<getHeading().toStdString()<<" "<"<reposition(); // we might have been relinked meanwhile + /*FIXME-3 reposition in BO:animate nearly never reached? needed? + if (((MapItem*)treeItem)->getPositionMode()==MapItem::Relative) + parObj->reposition(); // we might have been relinked meanwhile + */ return false; }