Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_curve_svg/import_svg.py')
-rw-r--r--io_curve_svg/import_svg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 56ca68a6..6904e8bc 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -960,9 +960,9 @@ class SVGGeometry:
if hasattr(node, 'getAttribute'):
defs = context['defines']
- id = node.getAttribute('id')
- if id and defs.get('#' + id) is None:
- defs['#' + id] = self
+ attr_id = node.getAttribute('id')
+ if attr_id and defs.get('#' + attr_id) is None:
+ defs['#' + attr_id] = self
className = node.getAttribute('class')
if className and defs.get(className) is None: