From ff572ec8a49915dd21d85130a15bfef5c3de2e84 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 5 May 2025 16:35:36 +0200 Subject: [PATCH] [unity] Added null check at SkeletonRenderSeparator, closes #2823. --- .../SkeletonRenderSeparator/SkeletonRenderSeparator.cs | 1 + spine-unity/Assets/Spine/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs index 77e33cd2d..060d5532e 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderSeparator/SkeletonRenderSeparator.cs @@ -212,6 +212,7 @@ namespace Spine.Unity { } public void UpdateVisibility () { + if (skeletonRenderer == null) return; foreach (SkeletonPartsRenderer partsRenderer in partsRenderers) { if (partsRenderer == null) continue; diff --git a/spine-unity/Assets/Spine/package.json b/spine-unity/Assets/Spine/package.json index 025414711..6f5192b2e 100644 --- a/spine-unity/Assets/Spine/package.json +++ b/spine-unity/Assets/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.2.101", + "version": "4.2.102", "unity": "2018.3", "author": { "name": "Esoteric Software",