Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cc7b3b6

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /