Skip to content

Commit 4bafb25

Browse files
authored
[SS] Fix shader edited check always assuming ObjectType.Clothing (#375)
1 parent c8ecfba commit 4bafb25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ShaderSwapper.Core/ShaderSwapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ private void SwapToVanillaPlus(SceneController controller, int id, Material mat,
608608

609609
private void SwapToVanillaPlus(MaterialEditorCharaController controller, int slot, ObjectType objectType, Material mat, GameObject go, bool forceSwap)
610610
{
611-
if (controller.GetMaterialShader(slot, ObjectType.Clothing, mat, go) == null || forceSwap)
611+
if (controller.GetMaterialShader(slot, objectType, mat, go) == null || forceSwap)
612612
{
613613
string oldShader = mat.shader.name;
614614
if (!SwapStudioShadersOnCharacter.Value)

0 commit comments

Comments
 (0)