Skip to content

Commit 294feaa

Browse files
committed
add comment about when component is null
also remove this fix from the release notes
1 parent 14f48ce commit 294feaa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,12 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
989989
prefabComponent = prefabXfo.gameObject.AddComponent(fbxComponent.t);
990990
Log("created component {0}:{1}", nodeName, fbxComponent.t);
991991
}
992-
// check that the component exists before copying to it
992+
// Check that the component exists before copying to it.
993+
// This happens for Rect Transform components as the fbx
994+
// contains a Transform which it tries to add/update on the
995+
// prefab, but fails because you cannot have both a Transform
996+
// and a Rect Transform
997+
// UNI-29179 TODO: better handling of Rect Transforms
993998
if (!prefabComponent) {
994999
continue;
9951000
}

RELEASE_NOTES.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ FIXES
1717
* Maya Unity Integration: lock export set so it doesn't accidentally get deleted
1818
* Convert to Prefab: Fix so convert to prefab doesn't lose Object references in scripts
1919
* Export Settings: Fix so MayaLT cannot be selected using "Browse" on Mac
20-
* Fbx Prefab: Fix update fails if trying to update component that doesn't exist
2120

2221
**Version**: 1.0.0b1
2322

0 commit comments

Comments
 (0)