Skip to content

Commit 1ca959e

Browse files
committed
only remove animation from skinned mesh, not parents
1 parent 5cf8d01 commit 1ca959e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ protected void ExportAnimationClip (AnimationClip uniAnimClip, GameObject uniRoo
18501850
var uniAnimCurve = uniCurve.uniAnimCurve;
18511851

18521852
// Do not create the curves if the component is a SkinnedMeshRenderer and if the option in FBX Export settings is toggled on.
1853-
if (!ExportOptions.AnimateSkinnedMesh && (uniGO.GetComponent<SkinnedMeshRenderer> () != null || uniGO.GetComponentInChildren<SkinnedMeshRenderer> () != null)) {
1853+
if (!ExportOptions.AnimateSkinnedMesh && (uniGO.GetComponent<SkinnedMeshRenderer> () != null)) {
18541854
continue;
18551855
}
18561856

0 commit comments

Comments
 (0)