[WL-816w] 타일 난간 제거 2차 — FI Island.fbx 임포트 Read/Write 켬(정점 접근 · 원본 메시 데이터 무변경 · 임포트 설정 1값) + 비가독 메시 접근 시 에러 팝업 방지(isReadable 검사) (PD 「에러 발생」 실측 · #816)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-09-15 18:27:41 +09:00
parent 1dccc30861
commit 405fdcb781
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ ModelImporter:
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1

View File

@ -51,9 +51,11 @@ namespace WL.Island
static Mesh Strip(Mesh src, float minY)
{
// 🔴 Read/Write 가 꺼진 메시는 접근 자체가 Unity 에러 로그(→ 게임 팝업)를 낸다 — 예외가 아니라 로그라 try/catch 로 못 막는다.
if (!src.isReadable) { Unreadable++; return src; }
Vector3[] verts; int[] tris;
try { verts = src.vertices; tris = src.triangles; }
catch (System.Exception) { Unreadable++; return src; } // Read/Write 꺼진 메시 — 손대지 않는다
catch (System.Exception) { Unreadable++; return src; }
if (verts == null || tris == null || tris.Length < 3) return src;
var keep = new List<int>(tris.Length);