Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

BG - For loop nodes don't trigger events as expected. #6366

Open Exairnous opened 1 year ago

Exairnous commented 1 year ago

Description When iterating through a For Loop node, custom events aren't fired/received properly and maybe variables aren't set properly either.

To Reproduce Steps to reproduce the behavior:

  1. Open this blend file: BG-For-Loop-Trigger-Bug.zip

  2. Export the scene to GLB.

  3. Drop it in a behavior graphs room.

  4. See the notification message produced the correct number of times (nine), but with the final index values.

  5. See the debug log only printed once with the final index values.

Expected behavior The notification and debug log should both be generated nine times with values increasing from [0,0] to [2,2].

Screenshots Incorrect Behavior: 2023-11-09_04-07

Correct Behavior: 2023-11-09_04-21

Hardware

Additional context The For Loop node seems to work correctly when no custom events are used. This bug is also reproducible with a single For Loop node, but I think two For Loop nodes are a more useful test case.