Skip to content

Commit

Permalink
[unity] Fixed exception when separation leads to empty mesh with no m…
Browse files Browse the repository at this point in the history
…aterial at SkeletonGraphic. Closes #2364.
  • Loading branch information
HaraldCsaszar committed Sep 14, 2023
1 parent eed1a3e commit 97e3dd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,11 @@ protected void UpdateMaterialsMultipleCanvasRenderers (SkeletonRendererInstructi
SubmeshInstruction submeshInstructionItem = currentInstructions.submeshInstructions.Items[i];
Material submeshMaterial = submeshInstructionItem.material;
if (useOriginalTextureAndMaterial) {
if (submeshMaterial == null) {
usedMaterialItems[i] = null;
usedTextureItems[i] = null;
continue;
}
usedTextureItems[i] = submeshMaterial.mainTexture;
if (!hasBlendModeMaterials) {
usedMaterialItems[i] = this.materialForRendering;
Expand Down
2 changes: 1 addition & 1 deletion spine-unity/Assets/Spine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.23",
"version": "4.1.24",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",
Expand Down

0 comments on commit 97e3dd4

Please sign in to comment.