From a09ec88b1624d5e0c9f1207cb347bda0d2a1b8d4 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 13 Apr 2023 18:08:09 +0200 Subject: [PATCH] [unity] Fixed compile error on old Unity version 2017.1, introduced by commit 7d0833f. See #2275. --- .../Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs index d27cbbe0e..07cb87315 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs @@ -700,7 +700,7 @@ namespace Spine.Unity { if (!this.allowMultipleCanvasRenderers) { MeshGenerator.GenerateSingleSubmeshInstruction(currentInstructions, skeleton, null); if (canvasRenderers.Count > 0) - DisableUnusedCanvasRenderers(usedCount: 0, isInRebuild); + DisableUnusedCanvasRenderers(usedCount: 0, isInRebuild : isInRebuild); usedRenderersCount = 0; } else { MeshGenerator.GenerateSkeletonRendererInstruction(currentInstructions, skeleton, null, @@ -934,7 +934,7 @@ namespace Spine.Unity { bool isInRebuild = false) { int submeshCount = currentInstructions.submeshInstructions.Count; - DisableUnusedCanvasRenderers(usedCount: submeshCount, isInRebuild); + DisableUnusedCanvasRenderers(usedCount: submeshCount, isInRebuild : isInRebuild); int separatorSlotGroupIndex = 0; int targetSiblingIndex = 0;