From 52c5c909dc49b54e3f1dd5da76acb6f932508e69 Mon Sep 17 00:00:00 2001 From: Steve Vermeulen Date: Fri, 10 Feb 2017 12:33:07 -0400 Subject: [PATCH] Changed to force user to manually refresh to avoid out of memory issues --- UnityPlugin/Projeny/Main/PrjHelper.cs | 4 +++- .../Projeny/PackageManager/Model/UpmCommandHandler.cs | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/UnityPlugin/Projeny/Main/PrjHelper.cs b/UnityPlugin/Projeny/Main/PrjHelper.cs index fa601b8f..40d21e74 100644 --- a/UnityPlugin/Projeny/Main/PrjHelper.cs +++ b/UnityPlugin/Projeny/Main/PrjHelper.cs @@ -46,7 +46,9 @@ public static bool UpdateLinks() { var result = PrjInterface.RunPrj(PrjInterface.CreatePrjRequest("updateLinks")); - AssetDatabase.Refresh(); + // This sometimes causes out of memory issues for reasons unknown so just let user + // manually refresh + //AssetDatabase.Refresh(); if (!result.Succeeded) { diff --git a/UnityPlugin/Projeny/PackageManager/Model/UpmCommandHandler.cs b/UnityPlugin/Projeny/PackageManager/Model/UpmCommandHandler.cs index 66b78992..94648bb2 100644 --- a/UnityPlugin/Projeny/PackageManager/Model/UpmCommandHandler.cs +++ b/UnityPlugin/Projeny/PackageManager/Model/UpmCommandHandler.cs @@ -64,7 +64,10 @@ public IEnumerator ProcessPrjCommand(string statusName, IEnumerator prjTask) // Refresh assets regardless of what kind of PrjCommand this was // This is good because many commands can affect the project // Including installing a package, deleting a package, etc. - AssetDatabase.Refresh(); + + // This sometimes causes out of memory issues for reasons unknown so just let user + // manually refresh for now + //AssetDatabase.Refresh(); _view.BlockedStatusMessage = null;