spine-runtimes icon indicating copy to clipboard operation
spine-runtimes copied to clipboard

[unity] Immutable Triangles has no effect by default

Open HaraldCsaszar opened this issue 1 year ago • 1 comments

Reported on the forum here: https://esotericsoftware.com/forum/d/26850-question-about-the-spine_trianglecheck-/7

When the define SPINE_TRIANGLECHECK is active (the default), immutableTriangles has no effect.

Fix: Correct the line ~154 in SkeletonRendererInstruction.cs GeometryNotEqual to:

if (a.immutableTriangles != b.immutableTriangles) return true;
if (a.immutableTriangles) return false; // newly added line

and move this block further up, below if (a.hasActiveClipping || b.hasActiveClipping) return true; . As this is a breaking change, apply this patch in next beta (4.3-beta).

HaraldCsaszar avatar Sep 18 '24 15:09 HaraldCsaszar

A new spine-unity 4.3-beta unitypackage is available for download: https://esotericsoftware.com/spine-unity-download Sorry for the long delay and thanks again for reporting!

HaraldCsaszar avatar Oct 09 '25 11:10 HaraldCsaszar