[Bf-extensions-cvs] [f21f6d34] master: Fix T88651: svg rect not using id as name
Falk David
noreply at git.blender.org
Tue Jun 1 09:20:35 CEST 2021
Commit: f21f6d34bae2c84f8e3edf8278f652b27db22a16
Author: Falk David
Date: Mon May 31 15:03:55 2021 +0200
Branches: master
https://developer.blender.org/rBAf21f6d34bae2c84f8e3edf8278f652b27db22a16
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
===================================================================
M io_curve_svg/import_svg.py
===================================================================
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'
More information about the Bf-extensions-cvs
mailing list