From c86b5805e2e3d06d1638d536a6c8d85d09556497 Mon Sep 17 00:00:00 2001 From: Joshu Coats Date: Sun, 9 Feb 2025 10:51:16 -0800 Subject: [PATCH] Add colors to POLYLINE when loading DXF input --- dxf_input.py | 2 ++ tests/data/refs/dxf_input__test_r12__dxf.out | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dxf_input.py b/dxf_input.py index a1e4d654..12c148d4 100644 --- a/dxf_input.py +++ b/dxf_input.py @@ -1657,6 +1657,8 @@ class DxfInput(inkex.InputExtension): vals[line[0]].append(line[1]) if line[0] == "8": # 8:layer val8 = line[1] + if line[0] == "62": # color + vals[line[0]].append(int(line[1])) if line[0] == "70": # flag flag70 = int(line[1]) else: diff --git a/tests/data/refs/dxf_input__test_r12__dxf.out b/tests/data/refs/dxf_input__test_r12__dxf.out index 1c5daa55..577f9252 100644 --- a/tests/data/refs/dxf_input__test_r12__dxf.out +++ b/tests/data/refs/dxf_input__test_r12__dxf.out @@ -1,2 +1,2 @@ - test_r12.dxf - scale = 1.000000, origin = (0.000000, 0.000000), method = manual + test_r12.dxf - scale = 1.000000, origin = (0.000000, 0.000000), method = manual \ No newline at end of file -- GitLab