Skip to content

Commit

Permalink
Fix: Ignore mesh with uv null
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinaS-64892 committed Sep 7, 2023
1 parent 63d8428 commit 2c9368d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Runtime/TextureAtlas/AtlasTexture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ public static List<Renderer> FilteredRenderers(IReadOnlyList<Renderer> renderers
if (item.tag == "EditorOnly") continue;
if (item.enabled == false) continue;
if (item.GetMesh() == null) continue;
if (item.GetMesh().uv.Any() == false) continue;
if (item.sharedMaterials.Length == 0) continue;
if (item.sharedMaterials.Any(Mat => Mat == null)) continue;

Expand Down

0 comments on commit 2c9368d

Please sign in to comment.