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` node doesn't output `endIndex` value #6439

Open j-conrad opened 10 months ago

j-conrad commented 10 months ago

Description The For Loop node outputs the index value each loop. However, the endIndex value never outputs.

I'm guessing this was an oversight with the default startIndex being zero.

To Reproduce Steps to reproduce the behavior:

  1. Open attached .blend file
  2. Note the For Loop start/end indices
  3. Run in Hubs
  4. Click the hexagon on the floor with console debug open
  5. Output ends at 9, despite endIndex being 10.

Expected behavior The index output should start at the startIndex value and end with the endIndex value. So, for example, setting them to 1 and 10, respectively should output: 1 2 3 4 5 6 7 8 9 10

Screenshots Graph: image

Result: image

Hardware

LoopBug.zip