Skip to content

Commit 47c4288

Browse files
committed
handle no source or dest defined
1 parent a963663 commit 47c4288

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,6 +2307,10 @@ private bool ResetTransform(Transform t){
23072307
var source = ExportOptions.AnimationSource;
23082308
var dest = ExportOptions.AnimationDest;
23092309

2310+
if (!source || !dest) {
2311+
return false;
2312+
}
2313+
23102314
// don't want to reset destination, if it's a bone this could cause issues with the skinning
23112315
var curr = dest.parent;
23122316
while (curr != source && curr != null) {

0 commit comments

Comments
 (0)