Skip to content

Commit

Permalink
Weird bug? Weird fix
Browse files Browse the repository at this point in the history
StollD committed Apr 5, 2018
1 parent 7ebb846 commit 7d58794
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ void IComponent<ModularScatter>.Update(ModularScatter system)
" colliders");
rebuild = true;
}
else if (meshColliders[0].sharedMesh != system.transform.GetChild(0).GetComponent<MeshFilter>().sharedMesh)
else if (meshColliders.Count > 0 && meshColliders[0].sharedMesh != system.transform?.GetChild(0)?.GetComponent<MeshFilter>()?.sharedMesh)
{
Debug.LogWarning("[Kopernicus] Replacing colliders");
rebuild = true;

0 comments on commit 7d58794

Please sign in to comment.