[PolyCollection] fix slicing
This commit is contained in:
parent
278f0783da
commit
36fed84249
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class PolyCollection(Shape):
|
|||
return
|
||||
for ii, ff in zip(
|
||||
self._vertex_offsets,
|
||||
chain(self._vertex_offsets, (self._vertex_lists.shape[0],)),
|
||||
chain(self._vertex_offsets[1:], [self._vertex_lists.shape[0]]),
|
||||
strict=True,
|
||||
):
|
||||
yield slice(ii, ff)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue