diff --git a/svgnest.js b/svgnest.js index 187356a..b178d49 100644 --- a/svgnest.js +++ b/svgnest.js @@ -881,6 +881,10 @@ var temp = clone.placement[i]; clone.placement[i] = clone.placement[j]; clone.placement[j] = temp; + + var tempRotation = clone.rotation[i]; + clone.rotation[i] = clone.rotation[j]; + clone.rotation[j] = tempRotation ; } }