Skip to content

[tools/rexm] Update nextCatIndex#5616

Merged
raysan5 merged 2 commits intoraysan5:masterfrom
CrackedPixel:fix-rexm-issue
Mar 3, 2026
Merged

[tools/rexm] Update nextCatIndex#5616
raysan5 merged 2 commits intoraysan5:masterfrom
CrackedPixel:fix-rexm-issue

Conversation

@CrackedPixel
Copy link
Contributor

@CrackedPixel CrackedPixel commented Mar 3, 2026

taken from #5612

i am less familiar with this tool so please advise 🙏 i don't know what the purpose of the +1 was

category list:
  [0]: core
  [1]: shapes
  [2]: textures  <-- nextCatIndex
  [3]: text      <-- +1
  [4]: models
  [5]: shaders

when searching for "textures" it was adding +1 and trying to affect "text", which messed up the generated output

it also crashes when running rexm validate (tested on linux) with current master with a segfault

with the PR changes it detects all categories perfectly and the crash doesn't happen anymore

@maiconpintoabreu
Copy link
Contributor

maiconpintoabreu commented Mar 3, 2026

Hi @CrackedPixel, the propose of the +1 is to find the next category and add the new example on the last position of the category pushing the next one down 1.

Ps. This fix will work untill you need to add a text example

Copy link
Contributor

@maiconpintoabreu maiconpintoabreu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to keep the +1 offset, otherwise it will add on the beginning of the example list.

@CrackedPixel CrackedPixel changed the title [tools/rexm] Removed +1 offset [tools/rexm] Update nextCatIndex Mar 3, 2026
@raysan5 raysan5 merged commit b68dbaa into raysan5:master Mar 3, 2026
2 checks passed
@raysan5
Copy link
Owner

raysan5 commented Mar 3, 2026

@CrackedPixel @maiconpintoabreu thanks for finding and fixing this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants