Skip to content

Commit cc7b3b6

Browse files
authored
Disabling update if the module is disabled in the Unity editor; (#413)
Added this check to avoid un-needed asset database searches on UpdateAssetsWithBuildTargets(EditorUserBuildSettings.activeBuildTarget); This commit solve perfomance issues when working on big projects.
1 parent db7b053 commit cc7b3b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/VersionHandlerImpl/src/VersionHandlerImpl.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,6 +2307,11 @@ static VersionHandlerImpl() {
23072307
}
23082308

23092309
static void UpdateVersionedAssetsOnUpdate() {
2310+
// Skips update if this module is disabled.
2311+
if (!Enabled) {
2312+
return;
2313+
}
2314+
23102315
UpdateVersionedAssets();
23112316
NotifyWhenCompliationComplete(false);
23122317
UpdateAssetsWithBuildTargets(EditorUserBuildSettings.activeBuildTarget);

0 commit comments

Comments
 (0)