Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFalk David <falkdavid@gmx.de>2021-05-31 16:03:55 +0300
committerFalk David <falkdavid@gmx.de>2021-06-01 10:20:25 +0300
commitf21f6d34bae2c84f8e3edf8278f652b27db22a16 (patch)
tree4edb57c0a1d0976b05cc364a2dc37107efb49873
parent27fe7f3a4f964b53af436c4da4ddea337eff0c7e (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.py2
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'