fix reading lwpolylines

This commit is contained in:
jan 2021-02-13 15:45:58 -08:00
parent 939ad5451c
commit 5aa41f5e12

View File

@ -196,7 +196,7 @@ def _read_block(block, clean_vertices: bool) -> Pattern:
eltype = element.dxftype()
if eltype in ('POLYLINE', 'LWPOLYLINE'):
if eltype == 'LWPOLYLINE':
points = numpy.array(tuple(element.lwpoints()))
points = numpy.array(tuple(element.lwpoints))
else:
points = numpy.array(tuple(element.points()))
attr = element.dxfattribs()