Skip to content

Commit

Permalink
Merge pull request #111 from Unity-Technologies/dev
Browse files Browse the repository at this point in the history
make sure assets aren't imported during a group change until the end.
  • Loading branch information
alffanclub committed Dec 21, 2018
2 parents 96b6b1c + 0c16cc0 commit a3aa128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Editor/AssetBundleModel/ABModel.cs
Expand Up @@ -614,13 +614,15 @@ internal static void ExecuteAssetMove(bool forceAct=true)
{
bool autoRefresh = EditorPrefs.GetBool("kAutoRefresh");
EditorPrefs.SetBool("kAutoRefresh", false);
AssetDatabase.StartAssetEditing();
EditorUtility.DisplayProgressBar("Moving assets to bundles", "", 0);
for (int i = 0; i < size; i++)
{
EditorUtility.DisplayProgressBar("Moving assets to bundle " + s_MoveData[i].bundleName, System.IO.Path.GetFileNameWithoutExtension(s_MoveData[i].assetName), (float)i / (float)size);
s_MoveData[i].Apply();
}
EditorUtility.ClearProgressBar();
AssetDatabase.StopAssetEditing();
EditorPrefs.SetBool("kAutoRefresh", autoRefresh);
s_MoveData.Clear();
}
Expand Down

0 comments on commit a3aa128

Please sign in to comment.