mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Merge branch 'pr/129' into AssetStudioMod
This commit is contained in:
@@ -228,19 +228,22 @@ namespace AssetStudio.FbxInterop
|
||||
|
||||
foreach (var bone in boneList)
|
||||
{
|
||||
var cluster = IntPtr.Zero;
|
||||
if (bone.Path != null)
|
||||
{
|
||||
var frame = rootFrame.FindFrameByPath(bone.Path);
|
||||
var boneNode = _frameToNode[frame];
|
||||
|
||||
var cluster = AsFbxMeshCreateCluster(_pContext, boneNode);
|
||||
|
||||
AsFbxMeshAddCluster(pClusterArray, cluster);
|
||||
}
|
||||
else
|
||||
{
|
||||
AsFbxMeshAddCluster(pClusterArray, IntPtr.Zero);
|
||||
if (frame != null)
|
||||
{
|
||||
var boneNode = _frameToNode[frame];
|
||||
cluster = AsFbxMeshCreateCluster(_pContext, boneNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.Debug($"Failed to find bone frame by path: \"{bone.Path}\"");
|
||||
}
|
||||
}
|
||||
AsFbxMeshAddCluster(pClusterArray, cluster);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user