From da4eb15d6bec1e2df6474074b8863e52680d25e1 Mon Sep 17 00:00:00 2001 From: Perfare Date: Tue, 4 Jun 2019 13:34:59 +0800 Subject: [PATCH] Fixed #400 --- AssetStudioUtility/ModelConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssetStudioUtility/ModelConverter.cs b/AssetStudioUtility/ModelConverter.cs index 2c48c83..2c2ff7d 100644 --- a/AssetStudioUtility/ModelConverter.cs +++ b/AssetStudioUtility/ModelConverter.cs @@ -380,7 +380,7 @@ namespace AssetStudio } } } - if (iMesh.BoneList?.Count == 0) + if (iMesh.BoneList == null || iMesh.BoneList.Count == 0) { if (mesh.m_BindPose.Length > 0 && mesh.m_BoneNameHashes?.Length > 0) {