File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Packages/com.unity.formats.fbx/Editor/Scripts Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2792,10 +2792,9 @@ private bool ExportGameObjectAndParents(
2792
2792
}
2793
2793
2794
2794
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
2795
+ // if this object was a bone and it's parent is also a bone, then
2796
2796
// pass the bone info when exporting the parent recursively.
2797
- if ( boneInfo != null && boneInfo . skinnedMesh . rootBone != null &&
2798
- unityGo . transform != boneInfo . skinnedMesh . rootBone && boneInfo . boneDict . ContainsKey ( unityGo . transform . parent ) )
2797
+ if ( boneInfo != null && boneInfo . boneDict . ContainsKey ( unityGo . transform . parent ) )
2799
2798
{
2800
2799
parentBoneInfo = boneInfo ;
2801
2800
}
You can’t perform that action at this time.
0 commit comments