diff --git a/src/ezdxf/entities/acad_proxy_entity.py b/src/ezdxf/entities/acad_proxy_entity.py index 9a29a346a..4a2aaf534 100644 --- a/src/ezdxf/entities/acad_proxy_entity.py +++ b/src/ezdxf/entities/acad_proxy_entity.py @@ -99,7 +99,6 @@ def __virtual_entities__(self) -> Iterator[DXFGraphic]: for e in ProxyGraphic(self.proxy_graphic, doc=self.doc).virtual_entities(): e.set_source_of_copy(self) yield e - return [] def virtual_entities(self) -> Iterator[DXFGraphic]: """Yields proxy graphic as "virtual" entities.""" diff --git a/src/ezdxf/entities/dxfentity.py b/src/ezdxf/entities/dxfentity.py index 7c0a40bcb..070c9caa2 100644 --- a/src/ezdxf/entities/dxfentity.py +++ b/src/ezdxf/entities/dxfentity.py @@ -1082,7 +1082,6 @@ def __virtual_entities__(self) -> Iterator[DXFGraphic]: for e in ProxyGraphic(self.proxy_graphic, self.doc).virtual_entities(): e.set_source_of_copy(self) yield e - return [] def virtual_entities(self) -> Iterator[DXFGraphic]: """Yields proxy graphic as "virtual" entities.""" diff --git a/src/ezdxf/path/converter.py b/src/ezdxf/path/converter.py index f739f17e8..df035b452 100644 --- a/src/ezdxf/path/converter.py +++ b/src/ezdxf/path/converter.py @@ -525,7 +525,7 @@ def to_lwpolylines( else: paths = list(paths) if len(paths) == 0: - return [] + return extrusion = Vec3(extrusion) reference_point = Vec3(paths[0].start) dxfattribs = dict(dxfattribs or {}) @@ -581,7 +581,7 @@ def to_polylines2d( else: paths = list(paths) if len(paths) == 0: - return [] + return extrusion = Vec3(extrusion) reference_point = Vec3(paths[0].start) dxfattribs = dict(dxfattribs or {}) @@ -744,7 +744,7 @@ def _polygon_converter( else: paths = list(paths) if len(paths) == 0: - return [] + return extrusion = Vec3(extrusion) reference_point = paths[0].start