Skip to content

Commit 56a4072

Browse files
authored
Merge pull request #99 from Unity-Technologies/UNI-22870-convert-to-prefab-incorrect-scene
UNI-22870 Convert to Prefab: make sure the prefab gets imported into the right scene
2 parents 18976a3 + cf8e2d4 commit 56a4072

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
@@ -132,7 +132,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
132132
}
133133

134134
// Instantiate the FBX file.
135-
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
135+
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset, gosToExport[i].scene);
136136
GameObject unityGO = unityObj as GameObject;
137137
if (!unityGO) {
138138
continue;

0 commit comments

Comments
 (0)