On 12/28/2008 01:31 PM, sydad...@telus.net wrote:

> The "repeat" function is a rather important user-interface feature.
> 
>  
> 
> the pick repeat rate is set with a <interval-sec>0.2</interval-sec>

Roger, thanks, that helps.

Here's the patch to make the "new" pick animation behave more
like the good old "2D" panel.  This makes it possible to turn
on the <repeatable> feature in 3D without quite so many bobbles.

--- a/simgear/scene/model/animation.cxx
+++ b/simgear/scene/model/animation.cxx
@@ -1986,7 +1986,7 @@ public:
     SGBindingList::const_iterator i;
     for (i = _bindingsDown.begin(); i != _bindingsDown.end(); ++i)
       (*i)->fire();
-    _repeatTime = 0;
+    _repeatTime = -_repeatInterval;    // anti-bobble: delay start of repeat
     return true;
   }
   virtual void buttonReleased(void)


------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to