Skip to content

Commit e8d22b2

Browse files
authored
Merge pull request #122 from Unity-Technologies/uni-24384-convert-selection-fix
uni-24384: fix selection being wrong after convert to model
2 parents b7611e5 + 151a8b0 commit e8d22b2

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)