Skip to content
Snippets Groups Projects
Commit 97bf32a8 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

Fix T51594: SVG Importer: circles and rectangles don't get datablocks named...

Fix T51594: SVG Importer: circles and rectangles don't get datablocks named after the original objects
parent eecdf5a4
No related branches found
No related tags found
No related merge requests found
...@@ -1536,6 +1536,9 @@ class SVGGeometryELLIPSE(SVGGeometry): ...@@ -1536,6 +1536,9 @@ class SVGGeometryELLIPSE(SVGGeometry):
ob = SVGCreateCurve() ob = SVGCreateCurve()
cu = ob.data cu = ob.data
if self._node.getAttribute('id'):
cu.name = self._node.getAttribute('id')
if self._styles['useFill']: if self._styles['useFill']:
cu.dimensions = '2D' cu.dimensions = '2D'
cu.materials.append(self._styles['fill']) cu.materials.append(self._styles['fill'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment