etxztn / pulpcore

Automatically exported from code.google.com/p/pulpcore
0 stars 0 forks source link

TimelineEvent in the middle of a Timeline is executed more than once #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. produce a scene with the following code in it's load() method:

<code>
Timeline tl = new Timeline();
final Int i = new Int(0);
tl.move(s, 0,0, 100, 100, 2000);
tl.after().addEvent(new TimelineEvent(10) {
    @Override
    public void run() {
        i.set(i.get()+1);
        CoreSystem.print("run"+i.get());
    }
});
addTimeline(tl);
</code>

I expect to see in the console output a single line:
run1
What I actually see is two lines:
run1
run2

Note that this is not related to the fact that the TimelineEvent is 
residing within a child Timeline, since if you do `tl.at(0).addEvent(...)` 
the event would occur once only.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by elaz...@gmail.com on 1 Aug 2009 at 7:51

GoogleCodeExporter commented 8 years ago

Original comment by brack...@gmail.com on 2 Aug 2009 at 7:50