浏览代码

[unity] Fixed compile error on old Unity version 2017.1, introduced by commit 7d0833f. See #2275.

Harald Csaszar 2 年之前
父节点
当前提交
a09ec88b16
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs

+ 2 - 2
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs

@@ -700,7 +700,7 @@ namespace Spine.Unity {
 			if (!this.allowMultipleCanvasRenderers) {
 			if (!this.allowMultipleCanvasRenderers) {
 				MeshGenerator.GenerateSingleSubmeshInstruction(currentInstructions, skeleton, null);
 				MeshGenerator.GenerateSingleSubmeshInstruction(currentInstructions, skeleton, null);
 				if (canvasRenderers.Count > 0)
 				if (canvasRenderers.Count > 0)
-					DisableUnusedCanvasRenderers(usedCount: 0, isInRebuild);
+					DisableUnusedCanvasRenderers(usedCount: 0, isInRebuild : isInRebuild);
 				usedRenderersCount = 0;
 				usedRenderersCount = 0;
 			} else {
 			} else {
 				MeshGenerator.GenerateSkeletonRendererInstruction(currentInstructions, skeleton, null,
 				MeshGenerator.GenerateSkeletonRendererInstruction(currentInstructions, skeleton, null,
@@ -934,7 +934,7 @@ namespace Spine.Unity {
 			bool isInRebuild = false) {
 			bool isInRebuild = false) {
 
 
 			int submeshCount = currentInstructions.submeshInstructions.Count;
 			int submeshCount = currentInstructions.submeshInstructions.Count;
-			DisableUnusedCanvasRenderers(usedCount: submeshCount, isInRebuild);
+			DisableUnusedCanvasRenderers(usedCount: submeshCount, isInRebuild : isInRebuild);
 
 
 			int separatorSlotGroupIndex = 0;
 			int separatorSlotGroupIndex = 0;
 			int targetSiblingIndex = 0;
 			int targetSiblingIndex = 0;