Skip to content
Merged
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: 5 additions & 1 deletion MEROptimizer/Application/MEROptimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ private void OnSchematicSpawned(SchematicSpawnedEventArgs ev)

if (ev.Schematic == null) return;

if (excludedNames.Any(n => ev.Schematic.Name.Contains(n)))
if (excludedNames.Any(n => ev.Schematic.Name.ToLower().Contains(n)))
{
return;
}
Expand Down Expand Up @@ -565,6 +565,10 @@ private void OnSchematicSpawned(SchematicSpawnedEventArgs ev)
collider.transform.position = position;
collider.transform.rotation = rotation;
collider.transform.name = $"[MEROCOLLIDER] {primitive.transform.name}";

//In order to get the collider to work with cedmod
collider.gameObject.layer = (color.a < 1 ? LayerMask.NameToLayer("Glass") : 0);

MeshCollider meshCollider = collider.AddComponent<MeshCollider>();
meshCollider.convex = true;
switch (primitiveType)
Expand Down