Skip to content

Commit e23419e

Browse files
committed
Small improvement for Bakery support
1 parent adc0f92 commit e23419e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Editor/WorldDebugger.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ public static Action SetPostProcessingLayerResources(PostProcessLayer postProces
13781378
private const string BakeryLightUnityLightCombined = "You have {0} Bakery lights that have an active Unity Light component on it.";
13791379
private const string BakeryLightUnityLightInfo = "These will not get baked with Bakery and will keep acting as realtime lights even if set to baked.";
13801380

1381-
private const string ShrnmDirectionalModeBakeryError = "SH or RNM directional mode detected in Bakery. These directional modes are not supported in VRChat by default, it's highly recommended to use Mono SH instead. Otherwise the usage of UdonBakeryAdapter by z3y is needed for compatibility with VRChat.";
1381+
private const string ShrnmDirectionalModeBakeryError = "SH or RNM directional mode detected in Bakery. These directional modes are not supported in VRChat by default, it's highly recommended to use Mono SH instead. Otherwise the usage of an extension such as UdonBakeryAdapter by z3y is needed for compatibility with VRChat.";
13821382
#endif
13831383

13841384
private const string AndroidLightmapCompressionOverride = "Lightmap \"{0}\" does not have a platform-specific override set for Android.";
@@ -1790,9 +1790,10 @@ private void CheckScene()
17901790
{
17911791
case ftRenderLightmap.RenderDirMode.RNM:
17921792
case ftRenderLightmap.RenderDirMode.SH:
1793-
const string className = "UdonBakeryAdapter";
1793+
const string merlinBakeryAdapter = "Merlin.VRCBakeryAdapter";
1794+
const string udonBakeryAdapter = "UdonBakeryAdapter";
17941795

1795-
if (Helper.GetTypeFromName(className) is null)
1796+
if (Helper.GetTypeFromName(merlinBakeryAdapter) is null && Helper.GetTypeFromName(udonBakeryAdapter) is null)
17961797
{
17971798
lighting.AddMessageGroup(new MessageGroup(ShrnmDirectionalModeBakeryError, MessageType.Error).SetDocumentation("https://github.com/z3y/UdonBakeryAdapter"));
17981799
}

0 commit comments

Comments
 (0)