Skip to content

Commit e702d95

Browse files
committed
CR changes
1 parent 4f120b7 commit e702d95

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ static void OnContextItem (MenuCommand command)
7171
/// <summary>
7272
/// Create an instantiated model prefab from an game object hierarchy.
7373
/// </summary>
74-
/// <returns>list of instanced model prefabs</returns>
75-
/// <param name="unityGameObjectsToConvert">Unity game objects to convert to model prefab instances</param>
76-
/// <param name="keepBackup">If set to <c>true</c> keep backup.</param>
77-
public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGameObjectsToConvert, string path = null, bool keepBackup = true)
74+
/// <returns>list of instanced Model Prefabs</returns>
75+
/// <param name="unityGameObjectsToConvert">Unity game objects to convert to Model Prefab instances</param>
76+
/// <param name="path">Path to save Model Prefab</param>
77+
/// <param name="keepOriginal">If set to <c>true</c> keep original gameobject hierarchy.</param>
78+
public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGameObjectsToConvert, string path = null, bool keepOriginal = true)
7879
{
7980
List<GameObject> result = new List<GameObject> ();
8081

@@ -134,7 +135,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
134135

135136

136137
// remove (now redundant) gameobject
137-
if (!keepBackup) {
138+
if (!keepOriginal) {
138139
Object.DestroyImmediate (unityGameObjectsToConvert [i]);
139140
}
140141
else

0 commit comments

Comments
 (0)