From f21f6d34bae2c84f8e3edf8278f652b27db22a16 Mon Sep 17 00:00:00 2001 From: Falk David <falkdavid@gmx.de> Date: Mon, 31 May 2021 15:03:55 +0200 Subject: [PATCH] Fix T88651: svg rect not using id as name The rectangle shape was not using the `id` as the object name when importing. All other shapes are doing it this way already. The patch calls `id_names_from_node` to set the name to the `id`. Credits go to @ariejdl. Reviewed By: sergey Maniphest Tasks: T88651 Differential Revision: https://developer.blender.org/D11429 --- io_curve_svg/import_svg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index b2f42b57c..b98aacbb6 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -1390,6 +1390,8 @@ class SVGGeometryRECT(SVGGeometry): ob = SVGCreateCurve(self._context) cu = ob.data + id_names_from_node(self._node, ob) + if self._styles['useFill']: cu.dimensions = '2D' cu.fill_mode = 'BOTH' -- GitLab