[Path] revert endcap changes to avoid double-counting
This commit is contained in:
parent
5d20a061fd
commit
495babf837
1 changed files with 2 additions and 2 deletions
|
|
@ -500,13 +500,13 @@ class Path(Shape):
|
|||
return self
|
||||
|
||||
def _calculate_cap_extensions(self) -> NDArray[numpy.float64]:
|
||||
if self.cap in (PathCap.Square, PathCap.Circle):
|
||||
if self.cap == PathCap.Square:
|
||||
extensions = numpy.full(2, self.width / 2)
|
||||
elif self.cap == PathCap.SquareCustom:
|
||||
assert isinstance(self.cap_extensions, numpy.ndarray)
|
||||
extensions = self.cap_extensions
|
||||
else:
|
||||
# Flush
|
||||
# Flush or Circle
|
||||
extensions = numpy.zeros(2)
|
||||
return extensions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue