Merge branch 'pr/129' into AssetStudioMod

This commit is contained in:
VaDiM
2026-06-19 20:57:26 +03:00
+11 -8
View File
@@ -228,19 +228,22 @@ namespace AssetStudio.FbxInterop
foreach (var bone in boneList) foreach (var bone in boneList)
{ {
var cluster = IntPtr.Zero;
if (bone.Path != null) if (bone.Path != null)
{ {
var frame = rootFrame.FindFrameByPath(bone.Path); var frame = rootFrame.FindFrameByPath(bone.Path);
var boneNode = _frameToNode[frame];
var cluster = AsFbxMeshCreateCluster(_pContext, boneNode); if (frame != null)
{
AsFbxMeshAddCluster(pClusterArray, cluster); var boneNode = _frameToNode[frame];
} cluster = AsFbxMeshCreateCluster(_pContext, boneNode);
else }
{ else
AsFbxMeshAddCluster(pClusterArray, IntPtr.Zero); {
Logger.Debug($"Failed to find bone frame by path: \"{bone.Path}\"");
}
} }
AsFbxMeshAddCluster(pClusterArray, cluster);
} }
} }