Skip to content

Conversation

Njaecha
Copy link
Contributor

@Njaecha Njaecha commented Jan 12, 2025

Recursion is hard.
After appending a particle, and doing the cursive call on its child, every normal particle would continue to add a leaf particle (obvious in hindsight).
The original game code did not have this issue, even though it also did not return after the recursion call, because it only adds a leaf when the transform associated with the particle has zero children. That, however, is also undesirable since it will not add a leaf particle if the bone chain ends prematurely.

@ManlyMarco ManlyMarco changed the title Fix another recursion error Fix_DynamicBones - Fix another recursion error Jan 12, 2025
@ManlyMarco ManlyMarco merged commit fb33fc3 into IllusionMods:master Jan 12, 2025
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.

2 participants