mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-16 10:06:10 -05:00
new m_colliderList
This commit is contained in:
parent
3f09717236
commit
f97bbc1ea5
|
|
@ -35,7 +35,7 @@ namespace UniVRM10
|
|||
public List<VRM10SpringJoint> Joints = new List<VRM10SpringJoint>();
|
||||
|
||||
Transform m_center;
|
||||
List<SpringBoneLogic.InternalCollider> m_colliderList = new List<SpringBoneLogic.InternalCollider>();
|
||||
List<SpringBoneLogic.InternalCollider> m_colliderList;
|
||||
|
||||
public Spring(string name)
|
||||
{
|
||||
|
|
@ -51,6 +51,10 @@ namespace UniVRM10
|
|||
}
|
||||
|
||||
// gather colliders
|
||||
if (m_colliderList == null)
|
||||
{
|
||||
m_colliderList = new List<SpringBoneLogic.InternalCollider>();
|
||||
}
|
||||
m_colliderList.Clear();
|
||||
if (ColliderGroups != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user