Skip to content

Commit fb33fc3

Browse files
authored
Fix_DynamicBones - Fix another recursion error (#74)
1 parent 16dfd88 commit fb33fc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Core_Fix_DynamicBones/Core.DynamicBonesFix.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ public static void AppendParticles(Transform bone, int parentIndex, float boneLe
101101
}
102102

103103
// if child is valid particle, append it as new particle
104-
if (!notValid) AppendParticles(child, count, boneLength, dynamicBone);
104+
if (!notValid)
105+
{
106+
AppendParticles(child, count, boneLength, dynamicBone);
107+
return;
108+
}
105109
}
106110

107111
// we only end up here if all children were in m_Excludes or at least one child was in m_notRolls

0 commit comments

Comments
 (0)