Skip to content

Commit

Permalink
Fix the scatter bug
Browse files Browse the repository at this point in the history
StollD committed Apr 27, 2018
1 parent 09d0fd5 commit c8201f2
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.Count > 0 && meshColliders[0].sharedMesh != system.transform?.GetChild(0)?.GetComponent<MeshFilter>()?.sharedMesh)
else if (meshColliders.Count > 0 && meshColliders[0] != null && meshColliders[0].sharedMesh != system.transform.GetChild(0).GetComponent<MeshFilter>().sharedMesh)
{
Debug.LogWarning("[Kopernicus] Replacing colliders");
rebuild = true;

0 comments on commit c8201f2

Please sign in to comment.