From 97bf32a8b84b7a9ef40b9406802f293e0280814f Mon Sep 17 00:00:00 2001
From: Sergey Sharybin <sergey.vfx@gmail.com>
Date: Wed, 24 May 2017 16:27:10 +0200
Subject: [PATCH] Fix T51594: SVG Importer: circles and rectangles don't get
 datablocks named after the original objects

---
 io_curve_svg/import_svg.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index c8c492ff1..91cff022d 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -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'])
-- 
GitLab