Fix T51594: SVG Importer: circles and rectangles don't get datablocks named after the original objects

This commit is contained in:
Sergey Sharybin 2017-05-24 16:27:10 +02:00
parent eecdf5a4f9
commit 97bf32a8b8
Notes: blender-bot 2023-02-14 19:38:47 +01:00
Referenced by issue #51594, SVG Importer: circles and rectangles don't get datablocks named after the original objects
1 changed files with 3 additions and 0 deletions

View File

@ -1536,6 +1536,9 @@ class SVGGeometryELLIPSE(SVGGeometry):
ob = SVGCreateCurve()
cu = ob.data
if self._node.getAttribute('id'):
cu.name = self._node.getAttribute('id')
if self._styles['useFill']:
cu.dimensions = '2D'
cu.materials.append(self._styles['fill'])