diff --git a/Editor/XatlasRepack.cs b/Editor/XatlasRepack.cs index dacba5dc..1f74ddd5 100644 --- a/Editor/XatlasRepack.cs +++ b/Editor/XatlasRepack.cs @@ -934,6 +934,7 @@ public static Vector2[] RepackUv(Mesh mesh, Vector2[] uv0, uint[] faceShellIds, var opts = RepackOptions.Default; opts.resolution = (uint)resolution; opts.padding = (uint)padding; + opts.rotateCharts = rotate; // Work on a temporary copy so original mesh is untouched var tmp = UnityEngine.Object.Instantiate(mesh); tmp.name = mesh.name + "_repack_tmp";