mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 10:38:46 +08:00
[unity] Fixed Immutable Triangles having no effect by default. Closes #2636.
This commit is contained in:
parent
38a8f8961e
commit
56734cde15
@ -147,14 +147,14 @@ namespace Spine.Unity {
|
||||
if (calledFromMainThread && !Application.isPlaying)
|
||||
return true;
|
||||
#endif
|
||||
|
||||
if (a.hasActiveClipping || b.hasActiveClipping) return true; // Triangles are unpredictable when clipping is active.
|
||||
|
||||
if (a.immutableTriangles != b.immutableTriangles) return true;
|
||||
if (a.immutableTriangles) return false;
|
||||
|
||||
// Everything below assumes the raw vertex and triangle counts were used. (ie, no clipping was done)
|
||||
if (a.rawVertexCount != b.rawVertexCount) return true;
|
||||
|
||||
if (a.immutableTriangles != b.immutableTriangles) return true;
|
||||
|
||||
int attachmentCountB = b.attachments.Count;
|
||||
if (a.attachments.Count != attachmentCountB) return true; // Bounds check for the looped storedAttachments count below.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user