DynamicBone AppendParticles rewrite #72
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IllusionMods/IllusionFixes!72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FixDynamicBoneAppendParticles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rewrote the method since it had a logic flaw that made it impossible to have multiple consecutive bones in the m_notRolls list.
Adding all children to m_Exclusions will still make the chain end prematurely.
The old Transpiler is no longer needed since it patched part of the method that this replaces entirely.
More detailed explanation of what the patch fixes
Without this it is not possible to add multiple consecutive "chain links" (transforms that would become particles) in the m_notRolls list because the recursive method call loop would end. The m_notRolls list is used to disable/skip chain links in the dynamic bone chain.
Furthermore this fixes, that, when the chain is ended prematurely (by adding all children of a chain link to the m_Exclusions list), the EndOffset settings will be ignored. It also fixes that, in HS2, the chain would end as soon as m_notRolls was used and an EndOffset is configured.
The previous fix for the m_Excludes list is included here by using .Contains().
@ -56,0 +42,4 @@particle.m_InitLocalPosition = bone.localPosition;particle.m_InitLocalRotation = bone.localRotation;}else