Merge branch 'pr/129' into AssetStudioMod

This commit is contained in:
VaDiM
2026-06-19 20:57:26 +03:00
+8 -5
View File
@@ -228,20 +228,23 @@ 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);
if (frame != null)
{
var boneNode = _frameToNode[frame]; var boneNode = _frameToNode[frame];
cluster = AsFbxMeshCreateCluster(_pContext, boneNode);
var cluster = AsFbxMeshCreateCluster(_pContext, boneNode);
AsFbxMeshAddCluster(pClusterArray, cluster);
} }
else else
{ {
AsFbxMeshAddCluster(pClusterArray, IntPtr.Zero); Logger.Debug($"Failed to find bone frame by path: \"{bone.Path}\"");
} }
} }
AsFbxMeshAddCluster(pClusterArray, cluster);
}
} }
var mesh = AsFbxMeshCreateMesh(_pContext, frameNode); var mesh = AsFbxMeshCreateMesh(_pContext, frameNode);