disable automatic light baking

This commit is contained in:
in0finite 2022-01-23 21:27:23 +01:00
parent 7623eb6ff8
commit a2dfe4fd8c

View file

@ -235,6 +235,9 @@ namespace SanAndreasUnity.Editor
EditorUtility.DisplayProgressBar("", "Preparing...", 0f); EditorUtility.DisplayProgressBar("", "Preparing...", 0f);
// disable automatic light baking, otherwise Editor will be very slow after assets are loaded and will fill the whole memory
Lightmapping.giWorkflowMode = Lightmapping.GIWorkflowMode.OnDemand;
DayTimeManager.Singleton.SetTime(13, 0, true); // to make TOBJ objects visible DayTimeManager.Singleton.SetTime(13, 0, true); // to make TOBJ objects visible
EditorUtility.ClearProgressBar(); EditorUtility.ClearProgressBar();