Skip to content
Snippets Groups Projects
Commit f21f6d34 authored by Falk David's avatar Falk David
Browse files

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
parent 27fe7f3a
No related branches found
No related tags found
No related merge requests found
...@@ -1390,6 +1390,8 @@ class SVGGeometryRECT(SVGGeometry): ...@@ -1390,6 +1390,8 @@ class SVGGeometryRECT(SVGGeometry):
ob = SVGCreateCurve(self._context) ob = SVGCreateCurve(self._context)
cu = ob.data cu = ob.data
id_names_from_node(self._node, ob)
if self._styles['useFill']: if self._styles['useFill']:
cu.dimensions = '2D' cu.dimensions = '2D'
cu.fill_mode = 'BOTH' cu.fill_mode = 'BOTH'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment