diff options
author | Falk David <falkdavid@gmx.de> | 2021-05-31 16:03:55 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-06-01 10:20:25 +0300 |
commit | f21f6d34bae2c84f8e3edf8278f652b27db22a16 (patch) | |
tree | 4edb57c0a1d0976b05cc364a2dc37107efb49873 | |
parent | 27fe7f3a4f964b53af436c4da4ddea337eff0c7e (diff) |
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
-rw-r--r-- | io_curve_svg/import_svg.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index b2f42b57..b98aacbb 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' |