Page 1 of 1

[0.18.17] rendering.get_all_ids() not behaving as expected

Posted: Sun Apr 05, 2020 2:53 pm
by Mylon
What happened:
rendering.get_all_ids() returns an array of sequential numbers equal to the length of valid ids.

What was expected:
rendering.get_all_ids() returns an array of valid IDs.

Case:
ID's 1-2, 5-8 are valid.
rendering.get_all_ids() returns 3 and 4, but omits 7 and 8. If I don't check is_valid() then this command causes an error trying to reference 3 and 4.

Image

Re: [0.18.17] rendering.get_all_ids() not behaving as expected

Posted: Sun Apr 05, 2020 3:03 pm
by Rseding91
Thanks for the report however you're using the result wrong. It's an array of IDs, you're using the index as the ID when it's just an index.
Capture.PNG
Capture.PNG (306.89 KiB) Viewed 719 times