Facepunch / sbox-spritetools

MIT License
8 stars 2 forks source link

Broadcast messages are invoked on the next frame #17

Closed badandbest closed 2 months ago

badandbest commented 2 months ago

Describe the issue

Broadcast messages are invoked on the frame after. This is more noticable if you use a lower framerate. In the case of a non-looping animation that has an event on the last frame, it won't get invoked at all.

To reproduce

  1. Create an animation with looping disabled.
  2. On the last frame, create a broadcast event.
  3. It won't get invoked.

reproduction project.zip