diff --git a/UMAProject/Assets/UMA/Example/Scripts/UMAPackedRecipeBase.cs b/UMAProject/Assets/UMA/Example/Scripts/UMAPackedRecipeBase.cs index 7c72922a..391bc1ec 100644 --- a/UMAProject/Assets/UMA/Example/Scripts/UMAPackedRecipeBase.cs +++ b/UMAProject/Assets/UMA/Example/Scripts/UMAPackedRecipeBase.cs @@ -384,7 +384,7 @@ public static UMAPackRecipe PackRecipeV2(UMA.UMAData.UMARecipe umaRecipe) for (int i = 0; i < umaPackRecipe.sharedColorCount; i++) { colorEntries.Add(umaRecipe.sharedColors[i]); - packedColorEntries.Add(new PackedOverlayColorDataV3(umaRecipe.sharedColors[i])); + packedColorEntries.Add(new PackedOverlayColorDataV3(umaRecipe.sharedColors[i])); } for (int i = 0; i < slotCount; i++) @@ -427,25 +427,27 @@ public static UMAPackRecipe PackRecipeV2(UMA.UMAData.UMARecipe umaRecipe) tempPackedOverlay.rect[3] = Mathf.FloorToInt(overlayData.rect.height); OverlayColorData colorData = overlayData.colorData; - // Could not use IndexOf to find color, since operator == overriden in OverlayColorData - int colorIndex = -1; - for (int col=0;col