fixup! use string for prebuild method since the editor assemblies are stripped and thus a compile error occurs. Also handle the test init scene in the graphics setup and fix the non-xr filtering to work correctly.
This commit is contained in:
Родитель
9343554f19
Коммит
eb3a0e383c
|
@ -138,6 +138,8 @@ namespace UnityEditor.TestTools.Graphics
|
||||||
var labels = new List<string>(AssetDatabase.GetLabels(sceneAsset));
|
var labels = new List<string>(AssetDatabase.GetLabels(sceneAsset));
|
||||||
if (labels.Contains(bakeLabel) && scene.enabled)
|
if (labels.Contains(bakeLabel) && scene.enabled)
|
||||||
{
|
{
|
||||||
|
EditorSceneManagement.EditorSceneManager.SetActiveScene(currentScene);
|
||||||
|
|
||||||
Debug.Log("baking lights for scene " + sceneAsset.name);
|
Debug.Log("baking lights for scene " + sceneAsset.name);
|
||||||
|
|
||||||
Lightmapping.giWorkflowMode = Lightmapping.GIWorkflowMode.OnDemand;
|
Lightmapping.giWorkflowMode = Lightmapping.GIWorkflowMode.OnDemand;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче