Skip to content

Commit 151a8b0

Browse files
author
Benoit Hudson
committed
uni-24384: fix selection being wrong after convert to model
The GameObjects we were returning were wrong. Seems connecting to a prefab breaks the link.
1 parent f75d07a commit 151a8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
157157
prefabFileName, fbxFileName));
158158
}
159159
// Connect to the prefab file.
160-
PrefabUtility.ConnectGameObjectToPrefab(unityGO, prefab);
160+
unityGO = PrefabUtility.ConnectGameObjectToPrefab(unityGO, prefab);
161161

162162
// Remove (now redundant) gameobject
163163
if (!keepOriginal) {

0 commit comments

Comments
 (0)