[Path / PolyCollection / Polygon] fix order of rotation/offset

This commit is contained in:
Jan Petykiewicz 2025-10-26 21:36:29 -07:00
commit 34a43a707c
3 changed files with 6 additions and 7 deletions

View file

@ -112,10 +112,10 @@ class PolyCollection(Shape):
self._vertex_offsets = numpy.asarray(vertex_offsets, dtype=numpy.intp)
self.repetition = repetition
self.annotations = annotations
if numpy.any(offset):
self.translate(offset)
if rotation:
self.rotate(rotation)
if numpy.any(offset):
self.translate(offset)
def __deepcopy__(self, memo: dict | None = None) -> Self:
memo = {} if memo is None else memo