[Bf-extensions-cvs] [97bf32a8] master: Fix T51594: SVG Importer: circles and rectangles don't get datablocks named after the original objects

Sergey Sharybin noreply at git.blender.org
Wed May 24 16:27:29 CEST 2017


Commit: 97bf32a8b84b7a9ef40b9406802f293e0280814f
Author: Sergey Sharybin
Date:   Wed May 24 16:27:10 2017 +0200
Branches: master
https://developer.blender.org/rBA97bf32a8b84b7a9ef40b9406802f293e0280814f

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

===================================================================

M	io_curve_svg/import_svg.py

===================================================================

diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index c8c492ff..91cff022 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'])



More information about the Bf-extensions-cvs mailing list