Skip to content

Conversation

Njaecha
Copy link
Contributor

@Njaecha Njaecha commented Jan 13, 2025

The return I implemented yesterday would obviously also stop the for loop form adding multiple children like the vanilla code can.
Inspired by the game code, which made adding the leaf require the particle to not have any children, I added a flag so that it can only add a leaf when particle did not add any of its children as particles. This is more similar to game code but also retains the ability to add a leaf particle when all children are in m_Exclusions.

@Njaecha
Copy link
Contributor Author

Njaecha commented Jan 13, 2025

I'm sorry that we have to update this code again in such a short time but this forloop in a whileloop in a recursive method got the better of me.

Copy link
Collaborator

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

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

prayge

@ManlyMarco ManlyMarco changed the title Fix append particles recursion error Fix_DynamicBones - Fix append particles recursion error Jan 14, 2025
@ManlyMarco ManlyMarco merged commit 5c1b931 into IllusionMods:master Jan 14, 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