fix dxf reader
This commit is contained in:
		
							parent
							
								
									4a7e20d6ba
								
							
						
					
					
						commit
						0f35eb5e58
					
				@ -200,9 +200,9 @@ def _read_block(block, clean_vertices: bool) -> Pattern:
 | 
			
		||||
        eltype = element.dxftype()
 | 
			
		||||
        if eltype in ('POLYLINE', 'LWPOLYLINE'):
 | 
			
		||||
            if eltype == 'LWPOLYLINE':
 | 
			
		||||
                points = numpy.array(element.lwpoints)
 | 
			
		||||
                points = numpy.array(tuple(element.lwpoints()))
 | 
			
		||||
            else:
 | 
			
		||||
                points = numpy.array(element.points)
 | 
			
		||||
                points = numpy.array(tuple(element.points()))
 | 
			
		||||
            attr = element.dxfattribs()
 | 
			
		||||
            args = {'layer': attr.get('layer', DEFAULT_LAYER),
 | 
			
		||||
                   }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user