Skip to content

Commit 1abeec6

Browse files
committed
add comment to clarify if statement
1 parent 0e2724c commit 1abeec6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExporter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,8 @@ private bool ExportGameObjectAndParents(
27922792
}
27932793

27942794
SkinnedMeshBoneInfo parentBoneInfo = null;
2795+
// if this object was a bone but not the skinned mesh rootbone, and it's parent is also a bone, then
2796+
// pass the bone info when exporting the parent recursively.
27952797
if (boneInfo != null && boneInfo.skinnedMesh.rootBone != null &&
27962798
unityGo.transform != boneInfo.skinnedMesh.rootBone && boneInfo.boneDict.ContainsKey(unityGo.transform.parent))
27972799
{

0 commit comments

Comments
 (0)