diff --git a/src/MaterialEditor.Core/Core.MaterialEditor.CharaController.cs b/src/MaterialEditor.Core/Core.MaterialEditor.CharaController.cs index 7dc70e2e..a38ef3e5 100644 --- a/src/MaterialEditor.Core/Core.MaterialEditor.CharaController.cs +++ b/src/MaterialEditor.Core/Core.MaterialEditor.CharaController.cs @@ -668,7 +668,7 @@ private void CorrectTongue() if (!ChaControl.hiPoly) return; #endif -#if KK || EC || KKS +#if KK || EC || KKS || AI || HS2 //Get the tongue material used by the head since this one is properly refreshed with every character reload Material tongueMat = null; foreach (var renderer in GetRendererList(ChaControl.objHead.gameObject)) diff --git a/src/MaterialEditor.Core/Core.MaterialEditor.Hooks.cs b/src/MaterialEditor.Core/Core.MaterialEditor.Hooks.cs index 4cc2d312..7142da82 100644 --- a/src/MaterialEditor.Core/Core.MaterialEditor.Hooks.cs +++ b/src/MaterialEditor.Core/Core.MaterialEditor.Hooks.cs @@ -127,7 +127,7 @@ private static void MaterialAPI_GetRendererList_Postfix(ref IEnumerable __result, GameObject gameObject, Renderer renderer) { //Must use sharedMaterials for character objects or it breaks body masks, etc. -#if KK || EC || KKS +#if KK || EC || KKS || AI || HS2 if (gameObject.GetComponent() && !MaterialEditorPlugin.MouthParts.Contains(renderer.NameFormatted())) #else if (gameObject.GetComponent()) @@ -144,7 +144,7 @@ private static bool MaterialAPI_GetMaterials(ref IEnumerable __result, private static bool MaterialAPI_SetMaterials(GameObject gameObject, Renderer renderer, Material[] materials) { //Must use sharedMaterials for character objects or it breaks body masks, etc. -#if KK || EC || KKS +#if KK || EC || KKS || AI || HS2 if (gameObject.GetComponent() && !MaterialEditorPlugin.MouthParts.Contains(renderer.NameFormatted())) #else if (gameObject.GetComponent()) diff --git a/src/MaterialEditor.Core/Core.MaterialEditor.cs b/src/MaterialEditor.Core/Core.MaterialEditor.cs index b7ad4d9f..8aee77f5 100644 --- a/src/MaterialEditor.Core/Core.MaterialEditor.cs +++ b/src/MaterialEditor.Core/Core.MaterialEditor.cs @@ -58,7 +58,7 @@ public partial class MaterialEditorPlugin : MaterialEditorAPI.MaterialEditorPlug /// /// MaterialEditor plugin version /// - public const string PluginVersion = "3.1.10"; + public const string PluginVersion = "3.1.11"; /// /// Material which is used in normal map conversion @@ -117,6 +117,11 @@ public partial class MaterialEditorPlugin : MaterialEditorAPI.MaterialEditorPlug /// Parts of the mouth that need special handling /// public static HashSet MouthParts = new HashSet { "cf_O_tooth", "cf_O_canine", "cf_O_tang", "o_tang", "n_tang" }; +#elif AI || HS2 + /// + /// Parts of the mouth that need special handling + /// + public static HashSet MouthParts = new HashSet { "o_tooth", "o_tang" }; #endif internal void Main()