Skip to content

emitter Timeline events trigger a second time after emitter death #120

Description

@Cubouse

Observed both on the browser version and the VS extension:

It seems to me that having an emitter timeline event for an emitter A, spawning some other emitter B affects emitter A's age.

To reproduce: load the attached particle system cub:emitter_event_bug which spawns cub:red with timeline events at 0.1s and 0.2s emitter age.

emitter_event_bug.particle.json
red.particle.json

If there is no event that spawns another emitter, the emitter age displayed in the top left corner of the viewport (which I assume to accurately reflect the simulation) increases normally into infinity.

But if there is a timeline event spawning an emitter, as soon as the emitter "dies", the emitter age resets to 0 and starts to increase again, causing the emitter timeline events to trigger a second time.

snowstorm_bug_emitter_timeline_event_emitter_age.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions