Skip to content

Commit

Permalink
Better filter out ignored colliders
Browse files Browse the repository at this point in the history
  • Loading branch information
acidbubbles committed Sep 2, 2020
1 parent 4f9c336 commit 2767a89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EditablesList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static EditablesList Build(MVRScript script, ColliderPreviewConfig config
var colliders = containingAtom.GetComponentsInChildren<Collider>(true)
.Where(collider => collider.gameObject.activeInHierarchy)
.Where(collider => !autoCollidersColliders.Contains(collider))
.Where(collider => collider.attachedRigidbody == null || IsRigidbodyIncluded(collider.attachedRigidbody))
.Where(collider => IsColliderIncluded(collider))
.Select(collider => ColliderModel.CreateTyped(script, collider, config))
.Where(model => { if (!colliderDuplicates.Add(model.Id)) { model.IsDuplicate = true; return false; } else { return true; } })
Expand Down

0 comments on commit 2767a89

Please sign in to comment.