fixup dxf read
This commit is contained in:
parent
5ef34794ff
commit
30025ba081
@ -234,7 +234,7 @@ def _read_block(block, clean_vertices: bool) -> Pattern:
|
|||||||
pat.shapes.append(shape)
|
pat.shapes.append(shape)
|
||||||
|
|
||||||
elif eltype in ('TEXT',):
|
elif eltype in ('TEXT',):
|
||||||
args = {'offset': element.get_pos()[1][:2],
|
args = {'offset': numpy.array(element.get_pos()[1])[:2],
|
||||||
'layer': element.dxfattribs().get('layer', DEFAULT_LAYER),
|
'layer': element.dxfattribs().get('layer', DEFAULT_LAYER),
|
||||||
}
|
}
|
||||||
string = element.dxfattribs().get('text', '')
|
string = element.dxfattribs().get('text', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user