Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Assets/NewtonVR/NVRAttachPointMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public class AttachPointMapper

public static void Register(Collider col, NVRAttachPoint point)
{
Colliders.Add(col, point);
if (!Colliders.ContainsKey(col) ) Colliders.Add(col, point);
}

public static void Deregister(Collider col)
{
Colliders.Remove(col);
if (Colliders.ContainsKey(col)) Colliders.Remove(col);
}

public static NVRAttachPoint GetAttachPoint(Collider col)
Expand All @@ -30,4 +30,4 @@ public static NVRAttachPoint GetAttachPoint(Collider col)
return point;
}
}
}
}