[Path] fix Path writing the wrong record type

This commit is contained in:
Jan Petykiewicz 2026-02-15 15:11:25 -08:00
commit 0503ceb725

View file

@ -1960,7 +1960,7 @@ class Path(Record, GeometryMixin):
dd = self.datatype is not None dd = self.datatype is not None
ll = self.layer is not None ll = self.layer is not None
size = write_uint(stream, 21) size = write_uint(stream, 22)
size += write_bool_byte(stream, (ee, ww, pp, xx, yy, rr, dd, ll)) size += write_bool_byte(stream, (ee, ww, pp, xx, yy, rr, dd, ll))
if ll: if ll:
size += write_uint(stream, self.layer) # type: ignore size += write_uint(stream, self.layer) # type: ignore