From 15b3f0979b1b938adc9ce03c1feb68c6fdf0b9c5 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 25 Apr 2014 18:19:56 +0200 Subject: [PATCH] Method to flip v and v2 in UVs. --- spine-csharp/src/Atlas.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spine-csharp/src/Atlas.cs b/spine-csharp/src/Atlas.cs index 5794435b2..3d3800a56 100644 --- a/spine-csharp/src/Atlas.cs +++ b/spine-csharp/src/Atlas.cs @@ -205,6 +205,14 @@ namespace Spine { return i + 1; } + public void FlipV () { + for (int i = 0, n = regions.Count; i < n; i++) { + AtlasRegion region = regions[i]; + region.v = 1 - region.v; + region.v2 = 1 - region.v2; + } + } + /// Returns the first region found with the specified name. This method uses string comparison to find the region, so the result /// should be cached rather than calling this method multiple times. /// The region, or null.