mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -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)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user